Explorar o código

AttachmentExtractor logging cleanup.

Andrew Mahone %!s(int64=5) %!d(string=hai) anos
pai
achega
9eef5f860d

+ 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)