@@ -1831,7 +1831,7 @@ impl Container {
18311831 already_cancelled = true ;
18321832
18331833 let msg = CoordinatorMessage :: Kill ;
1834- trace!( "processing { msg:?} ") ;
1834+ trace!( msg_name = msg. as_ref ( ) , "processing ") ;
18351835 to_worker_tx. send( msg) . await . context( KillSnafu ) ?;
18361836 } ,
18371837
@@ -1847,12 +1847,12 @@ impl Container {
18471847 }
18481848 } ;
18491849
1850- trace!( "processing { msg:?} ") ;
1850+ trace!( msg_name = msg. as_ref ( ) , "processing ") ;
18511851 to_worker_tx. send( msg) . await . context( StdinSnafu ) ?;
18521852 } ,
18531853
18541854 Some ( container_msg) = from_worker_rx. recv( ) => {
1855- trace!( "processing { container_msg:?} ") ;
1855+ trace!( msg_name = container_msg. as_ref ( ) , "processing ") ;
18561856
18571857 match container_msg {
18581858 WorkerMessage :: ExecuteCommand ( resp) => {
@@ -2382,13 +2382,13 @@ impl Commander {
23822382 Command ( Some ( ( ack_tx, command) ) ) => {
23832383 match command {
23842384 DemultiplexCommand :: Listen ( job_id, waiter) => {
2385- trace ! ( "adding listener for {job_id:?} " ) ;
2385+ trace ! ( job_id , "adding listener (many) " ) ;
23862386 let old = waiting. insert ( job_id, waiter) ;
23872387 ensure ! ( old. is_none( ) , DuplicateDemultiplexerClientSnafu { job_id } ) ;
23882388 }
23892389
23902390 DemultiplexCommand :: ListenOnce ( job_id, waiter) => {
2391- trace ! ( "adding listener for {job_id:?} " ) ;
2391+ trace ! ( job_id , "adding listener (once) " ) ;
23922392 let old = waiting_once. insert ( job_id, waiter) ;
23932393 ensure ! ( old. is_none( ) , DuplicateDemultiplexerClientSnafu { job_id } ) ;
23942394 }
@@ -2400,18 +2400,18 @@ impl Commander {
24002400 FromWorker ( None ) => break ,
24012401 FromWorker ( Some ( Multiplexed ( job_id, msg) ) ) => {
24022402 if let Some ( waiter) = waiting_once. remove ( & job_id) {
2403- trace ! ( "notifying listener for {job_id:?} " ) ;
2403+ trace ! ( job_id , "notifying listener (once) " ) ;
24042404 waiter. send ( msg) . ok ( /* Don't care about it */ ) ;
24052405 continue ;
24062406 }
24072407
24082408 if let Some ( waiter) = waiting. get ( & job_id) {
2409- trace ! ( "notifying listener for {job_id:?} " ) ;
2409+ trace ! ( job_id , "notifying listener (many) " ) ;
24102410 waiter. send ( msg) . await . ok ( /* Don't care about it */ ) ;
24112411 continue ;
24122412 }
24132413
2414- warn ! ( "no listener for {job_id:?} " ) ;
2414+ warn ! ( job_id , "no listener to notify " ) ;
24152415 }
24162416
24172417 Gc => {
0 commit comments