@@ -242,7 +242,7 @@ impl Connector {
242
242
243
243
/// Task for handling all transports.
244
244
#[ allow( clippy:: too_many_arguments) ]
245
- #[ tracing:: instrument( level= "debug ", skip_all, fields( id=? control. id( ) ) ) ]
245
+ #[ tracing:: instrument( name = "aggligator::connector" , level = "info ", skip_all, fields( conn_id =? control. id( ) ) ) ]
246
246
async fn task (
247
247
control : BoxControl , active_transports : Arc < RwLock < Vec < Weak < dyn ConnectingTransport > > > > ,
248
248
mut transport_rx : mpsc:: UnboundedReceiver < TransportPack > , tags_tx : watch:: Sender < HashSet < LinkTagBox > > ,
@@ -327,7 +327,7 @@ impl Connector {
327
327
}
328
328
329
329
/// Task for handling a transport.
330
- #[ tracing:: instrument( level= "debug" , skip_all, fields( transport= transport_pack. transport. name( ) ) ) ]
330
+ #[ tracing:: instrument( level = "debug" , skip_all, fields( transport = transport_pack. transport. name( ) ) ) ]
331
331
async fn transport_task (
332
332
transport_pack : TransportPack , control : BoxControl , tags_fw_tx : watch:: Sender < HashSet < LinkTagBox > > ,
333
333
mut disabled_tags_rx : watch:: Receiver < HashSet < LinkTagBox > > ,
@@ -425,13 +425,13 @@ impl Connector {
425
425
let link = match control. add ( tx, rx, tag. clone ( ) , & tag. user_data ( ) ) . await {
426
426
Ok ( link) => link,
427
427
Err ( err) => {
428
- tracing:: debug !( "adding link for tag {tag} to connection failed: {err}" ) ;
428
+ tracing:: warn !( "adding link for tag {tag} to connection failed: {err}" ) ;
429
429
let _ = link_error_tx. send ( BoxLinkError :: outgoing ( conn_id, & tag, err. into ( ) ) ) ;
430
430
sleep ( reconnect_delay) . await ;
431
431
return ( tag, None ) ;
432
432
}
433
433
} ;
434
- tracing:: debug !( "link for tag {tag} connected" ) ;
434
+ tracing:: info !( "link for tag {tag} connected" ) ;
435
435
436
436
// Disconnect link when transport is removed.
437
437
struct DisconnectLink < ' a > ( & ' a BoxLink ) ;
@@ -445,7 +445,7 @@ impl Connector {
445
445
// Wait for disconnection and publish reason.
446
446
let sleep_until = sleep ( reconnect_delay) ;
447
447
let reason = link. disconnected ( ) . await ;
448
- tracing:: debug !( "link for tag {tag} disconnected: {reason}" ) ;
448
+ tracing:: info !( "link for tag {tag} disconnected: {reason}" ) ;
449
449
let _ = link_error_tx. send ( BoxLinkError :: outgoing ( conn_id, & tag, reason. clone ( ) . into ( ) ) ) ;
450
450
sleep_until. await ;
451
451
@@ -483,7 +483,7 @@ impl Connector {
483
483
// Publish result.
484
484
match & res {
485
485
Ok ( ( ) ) => tracing:: debug!( "transport terminated" ) ,
486
- Err ( err) => tracing:: debug !( "transport failed: {err}" ) ,
486
+ Err ( err) => tracing:: warn !( "transport {} failed: {err}" , transport . name ( ) ) ,
487
487
}
488
488
let _ = result_tx. send ( res) ;
489
489
}
0 commit comments