Florian Friedrich 1 år sedan
förälder
incheckning
824064b3ed
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      Demos/LogFileCompressor/CompressingLogFileManager.m

+ 2 - 2
Demos/LogFileCompressor/CompressingLogFileManager.m

@@ -155,7 +155,7 @@
 
     if (upToDate)
     {
-        [self compressLogFile:[DDLogFileInfo logFileWithPath:logFilePath]];
+        [self compressLogFile:[[DDLogFileInfo alloc] initWithFilePath:logFilePath]];
     }
 }
 
@@ -426,7 +426,7 @@
         // considered a log file while it was only partially complete.
         // Only files that begin with "log-" are considered log files.
         
-        DDLogFileInfo *compressedLogFile = [DDLogFileInfo logFileWithPath:tempOutputFilePath];
+        DDLogFileInfo *compressedLogFile = [[DDLogFileInfo alloc] initWithFilePath:tempOutputFilePath];
         compressedLogFile.isArchived = YES;
         
         NSString *outputFileName = [logFile fileNameByAppendingPathExtension:@"gz"];