@@ -221,7 +221,7 @@ impl managed::Manager for ConnectionManager {
221221 type Type = Connection ;
222222 type Error = Error ;
223223
224- #[ instrument( ret) ]
224+ #[ instrument( skip_all , ret) ]
225225 async fn create ( & self ) -> Result < Self :: Type , Self :: Error > {
226226 let start = SystemTime :: now ( ) ;
227227
@@ -239,6 +239,11 @@ impl managed::Manager for ConnectionManager {
239239 }
240240
241241 {
242+ _ = connection
243+ . execute ( "PRAGMA synchronous = normal" , ( ) )
244+ . await
245+ . inspect ( |rows| debug ! ( rows) ) ?;
246+
242247 let mut rows = connection. query ( "PRAGMA synchronous" , ( ) ) . await ?;
243248
244249 if let Some ( row) = rows. next ( ) . await . inspect_err ( |err| error ! ( ?err) ) ? {
@@ -272,13 +277,11 @@ impl managed::Manager for ConnectionManager {
272277 . inspect ( |_| CONNECT_DURATION . record ( elapsed_millis ( start) , & [ ] ) )
273278 }
274279
275- #[ instrument( ret) ]
276280 async fn recycle (
277281 & self ,
278- obj : & mut Self :: Type ,
279- metrics : & managed:: Metrics ,
282+ _obj : & mut Self :: Type ,
283+ _metrics : & managed:: Metrics ,
280284 ) -> managed:: RecycleResult < Self :: Error > {
281- debug ! ( ?obj, ?metrics) ;
282285 Ok ( ( ) )
283286 }
284287}
@@ -543,13 +546,11 @@ impl Delegate {
543546
544547 async fn idempotent_message_check (
545548 & self ,
546- transaction_id : Option < & str > ,
549+ _transaction_id : Option < & str > ,
547550 topition : & Topition ,
548551 deflated : & deflated:: Batch ,
549552 connection : & Connection ,
550553 ) -> Result < ( ) > {
551- debug ! ( transaction_id, ?deflated) ;
552-
553554 let mut rows = connection
554555 . query (
555556 & sql_lookup ( "producer_epoch_current_for_producer.sql" ) ?,
@@ -663,8 +664,6 @@ impl Delegate {
663664 deflated : deflated:: Batch ,
664665 tx : & Transaction ,
665666 ) -> Result < i64 > {
666- debug ! ( cluster = ?self . cluster, ?transaction_id, ?topition, ?deflated) ;
667-
668667 let start = SystemTime :: now ( ) ;
669668
670669 let topic = topition. topic ( ) ;
@@ -731,7 +730,7 @@ impl Delegate {
731730 let key = record. key . as_deref ( ) ;
732731 let value = record. value . as_deref ( ) ;
733732
734- debug ! ( ?delta, ?record , ? offset) ;
733+ debug ! ( ?delta, ?offset) ;
735734
736735 _ = self
737736 . prepare_execute (
@@ -1349,7 +1348,7 @@ impl Storage for Engine {
13491348 } )
13501349 }
13511350
1352- #[ instrument( ret) ]
1351+ #[ instrument( skip_all , ret) ]
13531352 async fn produce (
13541353 & self ,
13551354 transaction_id : Option < & str > ,
@@ -2118,8 +2117,6 @@ impl Storage for Delegate {
21182117 ) -> Result < i64 > {
21192118 let start = SystemTime :: now ( ) ;
21202119
2121- debug ! ( cluster = self . cluster, transaction_id, ?topition, ?deflated) ;
2122-
21232120 let tx = self . transaction ( ) . await . inspect ( |_| {
21242121 debug ! ( after_produce_transaction = elapsed_millis( start) ) ;
21252122 } ) ?;
0 commit comments