diff --git a/sqlx-core/src/transaction.rs b/sqlx-core/src/transaction.rs index 39fe0eecff..75d913418f 100644 --- a/sqlx-core/src/transaction.rs +++ b/sqlx-core/src/transaction.rs @@ -1,7 +1,6 @@ use std::borrow::Cow; use std::fmt::{self, Debug, Formatter}; use std::ops::{Deref, DerefMut}; -use std::backtrace::Backtrace; use futures_core::future::BoxFuture; @@ -269,11 +268,7 @@ where // what this does depends on the database but generally this means we queue a rollback // operation that will happen on the next asynchronous invocation of the underlying // connection (including if the connection is returned to a pool) - let bt = Backtrace::capture(); - tracing::warn!( - backtrace = ?bt, - "Detected incorrect transaction rollback" - ); + tracing::warn!("Detected incorrect transaction rollback"); DB::TransactionManager::start_rollback(&mut self.connection); } }