chore: use Display instead of Debug for most errors (#6777)

This commit is contained in:
DaniPopes
2024-02-24 14:13:41 +02:00
committed by GitHub
parent da3f469758
commit 94cb6a8bcd
36 changed files with 106 additions and 105 deletions

View File

@ -167,10 +167,10 @@ impl DatabaseMetrics for DatabaseEnv {
Ok::<(), eyre::Report>(())
})
.map_err(|error| error!(?error, "Failed to read db table stats"));
.map_err(|error| error!(%error, "Failed to read db table stats"));
if let Ok(freelist) =
self.freelist().map_err(|error| error!(?error, "Failed to read db.freelist"))
self.freelist().map_err(|error| error!(%error, "Failed to read db.freelist"))
{
metrics.push(("db.freelist", freelist as f64, vec![]));
}