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"];