Emit backtrace for errors
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user