mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-05 01:24:53 +01:00
core: use debug format for logging errors
Show the full cause stack.
This commit is contained in:
parent
0f308788ef
commit
1143396068
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ pub trait TileMerger {
|
||||||
let timestamp = match fs::modified_timestamp(&source_path) {
|
let timestamp = match fs::modified_timestamp(&source_path) {
|
||||||
Ok(timestamp) => timestamp,
|
Ok(timestamp) => timestamp,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
warn!("{}", err);
|
warn!("{:?}", err);
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -127,7 +127,7 @@ where
|
||||||
Ok(source) => source,
|
Ok(source) => source,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
warn!(
|
warn!(
|
||||||
"Failed to read source image {}: {}",
|
"Failed to read source image {}: {:?}",
|
||||||
source_path.display(),
|
source_path.display(),
|
||||||
err,
|
err,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue