Emit backtrace for errors

This commit is contained in:
Manuel Vögele
2024-01-11 15:35:43 +01:00
parent ceaf37a91f
commit 26fd84b827

View File

@@ -115,8 +115,7 @@ async fn main() {
let result = check_task(&bot, config.reminder_time, &db).await; let result = check_task(&bot, config.reminder_time, &db).await;
if let Err(e) = result { if let Err(e) = result {
// TODO Emitting a backtrace would be nice error!("{}\nBacktrace:\n{}", e, e.backtrace());
error!("{}", e);
} }
} }
}); });