Skip to content

Commit 52fca40

Browse files
DEBUG: lissine 2
1 parent ef4742e commit 52fca40

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Monal/Classes/MLFiletransfer.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ +(void) initialize
4545

4646
NSArray* directoryContents = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:_documentCacheDir error:nil];
4747
for(NSString* file in directoryContents)
48-
DDLogError(@"Filetransfer File %@/%@", _documentCacheDir, file);
48+
{
49+
NSData* data = [NSData dataWithContentsOfFile:[NSString stringWithFormat:@"%@/%@", _documentCacheDir, file] options:0 error:&error];
50+
if(error==nil)
51+
DDLogError(@"Filetransfer File %@/%@: %@", _documentCacheDir, file, data);
52+
else
53+
DDLogError(@"Filetransfer File Error %@/%@: %@", _documentCacheDir, file, error);
54+
}
4955
}
5056

5157
+(BOOL) isIdle

0 commit comments

Comments
 (0)