소스 검색

AttachmentExtractor logging cleanup.

Andrew Mahone 5 년 전
부모
커밋
9eef5f860d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs

+ 1 - 1
MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs

@@ -220,9 +220,9 @@ namespace MediaBrowser.MediaEncoding.Attachments
             {
                 failed = true;
 
+                _logger.LogWarning("Deleting extracted attachment {Path} due to failure: {ExitCode}", outputPath, exitCode);
                 try
                 {
-                    _logger.LogWarning("Deleting extracted attachment due to failure: {Path}", outputPath);
                     _fileSystem.DeleteFile(outputPath);
                 }
                 catch (FileNotFoundException)