From d48b147b3d2a9df0f06439831ca151605bd50e5e Mon Sep 17 00:00:00 2001 From: andrews05 Date: Tue, 13 Jan 2026 07:48:10 +1300 Subject: [PATCH] Tweak output when not optimised (#765) --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index b02b8ffd..28d956ec 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -195,7 +195,7 @@ pub fn optimize(input: &InFile, output: &OutFile, opts: &Options) -> PngResult<( (OutFile::Path { path, .. }, InFile::Path(input_path)) if path.as_ref().is_none_or(|p| p == input_path) => { - info!("{input}: Could not optimize further, no change written"); + info!("Could not optimize further, no change written: {input}"); return Ok((in_length, in_length)); } _ => { @@ -227,6 +227,7 @@ pub fn optimize(input: &InFile, output: &OutFile, opts: &Options) -> PngResult<( buffer .write_all(&optimized_output) .map_err(|e| PngError::WriteFailed("stdout".into(), e))?; + info!("{savings}: stdout"); } ( OutFile::Path {