chore: cleanup logs

This commit is contained in:
Ashley Wulber 2025-09-12 17:39:37 -04:00 committed by Michael Murphy
parent da11207f12
commit 79bf2cb4f8
16 changed files with 396 additions and 169 deletions

View file

@ -8,5 +8,5 @@ license = "GPL-3.0-only"
[dependencies]
cosmic-config.workspace = true
log.workspace = true
tracing.workspace = true
serde.workspace = true

View file

@ -35,14 +35,14 @@ where
let config = C::get_entry(&handler)
.inspect_err(|(errors, _)| {
for err in errors.iter().filter(|err| err.is_err()) {
log::error!("{err}")
tracing::error!("{err}")
}
})
.unwrap_or_else(|(_, config)| config);
(config, Some(handler))
}
Err(e) => {
log::error!("Failed to get settings for `{APP_ID}` (v {CONFIG_VERSION}): {e:?}");
tracing::error!("Failed to get settings for `{APP_ID}` (v {CONFIG_VERSION}): {e:?}");
(C::default(), None)
}
}