diff --git a/PlexCleaner/FfMpegTool.cs b/PlexCleaner/FfMpegTool.cs index 9766e4af..e626c4a3 100644 --- a/PlexCleaner/FfMpegTool.cs +++ b/PlexCleaner/FfMpegTool.cs @@ -178,23 +178,30 @@ public VerifyResult VerifyMedia(string fileName) } if (verifyResult == VerifyResult.DecodeError) { - // Log the unique error lines, a silent non-zero exit has none so omit the empty field + // Log the unique error lines, a silent non-zero exit has none so omit the empty field. + // Include the operation and file name to match the tool-failure logging convention + // (see MediaTool.LogFailedResult); VerifyMedia streams stderr so it logs inline rather + // than through that helper. string error = CleanForLog(string.Join(" | ", classifier.Errors)); if (string.IsNullOrEmpty(error)) { Log.Error( - "Failed execution of {ToolType} : ExitCode: {ExitCode}", + "Failed execution of {ToolType} : {Operation:l} : ExitCode: {ExitCode} : {FileName}", GetToolType(), - exitCode + nameof(VerifyMedia), + exitCode, + fileName ); } else { Log.Error( - "Failed execution of {ToolType} : ExitCode: {ExitCode} : {Error}", + "Failed execution of {ToolType} : {Operation:l} : ExitCode: {ExitCode} : {Error} : {FileName}", GetToolType(), + nameof(VerifyMedia), exitCode, - error + error, + fileName ); } }