Skip to content

Commit 9943585

Browse files
committed
Add some debug logging
1 parent 2446ac3 commit 9943585

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,10 @@ impl InputAction {
368368
if built_binary_ctime.cmp(&script_mtime).is_ge()
369369
&& built_binary_ctime.cmp(&manifest_mtime).is_ge()
370370
{
371+
debug!("Keeping old binary");
371372
return Ok(execute_command());
373+
} else {
374+
debug!("Old binary too old - rebuilding");
372375
}
373376
}
374377
(Err(error), _) | (_, Err(error)) => {
@@ -377,7 +380,7 @@ impl InputAction {
377380
}
378381
}
379382
Err(e) if e.kind() == std::io::ErrorKind::NotFound => {
380-
// Continue
383+
debug!("No old binary found");
381384
}
382385
Err(e) => {
383386
return Err(error::MainError::Io(e));

0 commit comments

Comments
 (0)