Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions DashSync/shared/Libraries/DSLogger.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,14 @@ - (instancetype)init {
[logFiles addObject:fileURL];
}
}
// add rust log file located at $CACHE/Logs/processor.log
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString *cacheDirectory = [paths objectAtIndex:0];
NSString *rustLogPath = [cacheDirectory stringByAppendingPathComponent:@"Logs/processor.log"];

if ([[NSFileManager defaultManager] fileExistsAtPath:rustLogPath]) {
[logFiles addObject:[NSURL fileURLWithPath:rustLogPath]];
}
return [logFiles copy];
}

Expand Down