@@ -480,9 +480,9 @@ where
480
480
> ( SINK_PROXY_BUFFER_SIZE ) ;
481
481
482
482
if R :: IS_CLIENT {
483
- tracing:: info !( ?peer_info, "Service initialized as client" ) ;
483
+ tracing:: debug !( ?peer_info, "Service initialized as client" ) ;
484
484
} else {
485
- tracing:: info !( ?peer_info, "Service initialized as server" ) ;
485
+ tracing:: debug !( ?peer_info, "Service initialized as server" ) ;
486
486
}
487
487
488
488
let ( peer, mut peer_proxy) = <Peer < R > >:: new ( id_provider, peer_info) ;
@@ -521,7 +521,7 @@ where
521
521
Event :: PeerMessage ( m. into_message( ) )
522
522
} else {
523
523
// input stream closed
524
- tracing:: info !( "input stream terminated" ) ;
524
+ tracing:: debug !( "input stream terminated" ) ;
525
525
break QuitReason :: Closed
526
526
}
527
527
}
@@ -533,7 +533,7 @@ where
533
533
}
534
534
}
535
535
_ = serve_loop_ct. cancelled( ) => {
536
- tracing:: info !( "task cancelled" ) ;
536
+ tracing:: debug !( "task cancelled" ) ;
537
537
break QuitReason :: Cancelled
538
538
}
539
539
} ;
@@ -588,7 +588,7 @@ where
588
588
let _ = responder. send ( response) ;
589
589
if let Some ( param) = cancellation_param {
590
590
if let Some ( responder) = local_responder_pool. remove ( & param. request_id ) {
591
- tracing:: info !( id = %param. request_id, reason = param. reason, "cancelled" ) ;
591
+ tracing:: debug !( id = %param. request_id, reason = param. reason, "cancelled" ) ;
592
592
let _response_result = responder. send ( Err ( ServiceError :: Cancelled {
593
593
reason : param. reason . clone ( ) ,
594
594
} ) ) ;
@@ -612,11 +612,11 @@ where
612
612
let result = service. handle_request ( request, context) . await ;
613
613
let response = match result {
614
614
Ok ( result) => {
615
- tracing:: info !( %id, ?result, "response message" ) ;
615
+ tracing:: debug !( %id, ?result, "response message" ) ;
616
616
Message :: Response ( result, id)
617
617
}
618
618
Err ( error) => {
619
- tracing:: warn !( %id, ?error, "response error" ) ;
619
+ tracing:: debug !( %id, ?error, "response error" ) ;
620
620
Message :: Error ( error, id)
621
621
}
622
622
} ;
@@ -625,12 +625,12 @@ where
625
625
}
626
626
}
627
627
Event :: PeerMessage ( Message :: Notification ( notification) ) => {
628
- tracing:: info !( ?notification, "received notification" ) ;
628
+ tracing:: debug !( ?notification, "received notification" ) ;
629
629
// catch cancelled notification
630
630
let notification = match notification. try_into ( ) {
631
631
Ok :: < CancelledNotification , _ > ( cancelled) => {
632
632
if let Some ( ct) = local_ct_pool. remove ( & cancelled. params . request_id ) {
633
- tracing:: info !( id = %cancelled. params. request_id, reason = cancelled. params. reason, "cancelled" ) ;
633
+ tracing:: debug !( id = %cancelled. params. request_id, reason = cancelled. params. reason, "cancelled" ) ;
634
634
ct. cancel ( ) ;
635
635
}
636
636
cancelled. into ( )
@@ -669,7 +669,7 @@ where
669
669
if let Err ( e) = sink_close_result {
670
670
tracing:: error!( %e, "fail to close sink" ) ;
671
671
}
672
- tracing:: info !( ?quit_reason, "serve finished" ) ;
672
+ tracing:: debug !( ?quit_reason, "serve finished" ) ;
673
673
quit_reason
674
674
} ) ;
675
675
Ok ( RunningService {
0 commit comments