core: use debug format for logging errors

Show the full cause stack.
This commit is contained in:
Matthias Schiffer 2023-11-26 13:50:05 +01:00
parent 0f308788ef
commit 1143396068
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ pub trait TileMerger {
let timestamp = match fs::modified_timestamp(&source_path) {
Ok(timestamp) => timestamp,
Err(err) => {
warn!("{}", err);
warn!("{:?}", err);
return None;
}
};

View file

@ -127,7 +127,7 @@ where
Ok(source) => source,
Err(err) => {
warn!(
"Failed to read source image {}: {}",
"Failed to read source image {}: {:?}",
source_path.display(),
err,
);