Florian Friedrich преди 1 година
родител
ревизия
824064b3ed
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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"];