chore(rust): correctly format values in errors

This commit is contained in:
alyssa 2025-05-17 15:05:37 +00:00
parent 347add8998
commit 7737850afb
15 changed files with 54 additions and 62 deletions

View file

@ -74,8 +74,7 @@ async fn real_main() -> anyhow::Result<()> {
info!("running {}", $desc);
let before = std::time::Instant::now();
if let Err(error) = $fn(ctx).await {
error!("failed to run {}: {}", $desc, error);
// sentry
error!(?error, "failed to run {}", $desc);
}
let duration = before.elapsed();
info!("ran {} in {duration:?}", $desc);