diff --git a/crates/storage/db/src/implementation/mdbx/tx.rs b/crates/storage/db/src/implementation/mdbx/tx.rs index 1e7ee3aabc..82c2914890 100644 --- a/crates/storage/db/src/implementation/mdbx/tx.rs +++ b/crates/storage/db/src/implementation/mdbx/tx.rs @@ -208,13 +208,11 @@ impl MetricsHandler { let open_duration = self.start.elapsed(); if open_duration > LONG_TRANSACTION_DURATION { self.backtrace_recorded.store(true, Ordering::Relaxed); - - let backtrace = Backtrace::force_capture(); warn!( target: "storage::db::mdbx", ?open_duration, %self.txn_id, - "The database read transaction has been open for too long. Backtrace: {}", backtrace.to_string() + "The database read transaction has been open for too long. Backtrace:\n{}", Backtrace::force_capture() ); } }