Skip to content

Commit 037a5d4

Browse files
sypharjyn514
authored andcommitted
use anyhow error debug-format for dev logs
1 parent abc8bb4 commit 037a5d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub(crate) fn report_error(err: &anyhow::Error) {
2727
if std::env::var("SENTRY_DSN").is_ok() {
2828
sentry_anyhow::capture_anyhow(err);
2929
} else {
30-
log::error!("{}", err);
30+
// Debug-format for anyhow errors includes context & backtrace
31+
log::error!("{:?}", err);
3132
}
3233
}

0 commit comments

Comments
 (0)