@@ -527,9 +527,9 @@ where
527527 tokio:: sync:: mpsc:: channel :: < TxJsonRpcMessage < R > > ( SINK_PROXY_BUFFER_SIZE ) ;
528528
529529 if R :: IS_CLIENT {
530- tracing:: info !( ?peer_info, "Service initialized as client" ) ;
530+ tracing:: debug !( ?peer_info, "Service initialized as client" ) ;
531531 } else {
532- tracing:: info !( ?peer_info, "Service initialized as server" ) ;
532+ tracing:: debug !( ?peer_info, "Service initialized as server" ) ;
533533 }
534534
535535 let ( peer, mut peer_proxy) = <Peer < R > >:: new ( id_provider, peer_info) ;
@@ -572,7 +572,7 @@ where
572572 Event :: PeerMessage ( m)
573573 } else {
574574 // input stream closed
575- tracing:: info !( "input stream terminated" ) ;
575+ tracing:: debug !( "input stream terminated" ) ;
576576 break QuitReason :: Closed
577577 }
578578 }
@@ -584,7 +584,7 @@ where
584584 }
585585 }
586586 _ = serve_loop_ct. cancelled( ) => {
587- tracing:: info !( "task cancelled" ) ;
587+ tracing:: debug !( "task cancelled" ) ;
588588 break QuitReason :: Cancelled
589589 }
590590 }
@@ -646,7 +646,7 @@ where
646646 let _ = responder. send ( response) ;
647647 if let Some ( param) = cancellation_param {
648648 if let Some ( responder) = local_responder_pool. remove ( & param. request_id ) {
649- tracing:: info !( id = %param. request_id, reason = param. reason, "cancelled" ) ;
649+ tracing:: debug !( id = %param. request_id, reason = param. reason, "cancelled" ) ;
650650 let _response_result = responder. send ( Err ( ServiceError :: Cancelled {
651651 reason : param. reason . clone ( ) ,
652652 } ) ) ;
@@ -656,7 +656,7 @@ where
656656 Event :: PeerMessage ( JsonRpcMessage :: Request ( JsonRpcRequest {
657657 id, request, ..
658658 } ) ) => {
659- tracing:: info !( %id, ?request, "received request" ) ;
659+ tracing:: debug !( %id, ?request, "received request" ) ;
660660 {
661661 let service = shared_service. clone ( ) ;
662662 let sink = sink_proxy_tx. clone ( ) ;
@@ -674,11 +674,11 @@ where
674674 let result = service. handle_request ( request, context) . await ;
675675 let response = match result {
676676 Ok ( result) => {
677- tracing:: info !( %id, ?result, "response message" ) ;
677+ tracing:: debug !( %id, ?result, "response message" ) ;
678678 JsonRpcMessage :: response ( result, id)
679679 }
680680 Err ( error) => {
681- tracing:: warn !( %id, ?error, "response error" ) ;
681+ tracing:: debug !( %id, ?error, "response error" ) ;
682682 JsonRpcMessage :: error ( error, id)
683683 }
684684 } ;
@@ -690,12 +690,12 @@ where
690690 notification,
691691 ..
692692 } ) ) => {
693- tracing:: info !( ?notification, "received notification" ) ;
693+ tracing:: debug !( ?notification, "received notification" ) ;
694694 // catch cancelled notification
695695 let notification = match notification. try_into ( ) {
696696 Ok :: < CancelledNotification , _ > ( cancelled) => {
697697 if let Some ( ct) = local_ct_pool. remove ( & cancelled. params . request_id ) {
698- tracing:: info !( id = %cancelled. params. request_id, reason = cancelled. params. reason, "cancelled" ) ;
698+ tracing:: debug !( id = %cancelled. params. request_id, reason = cancelled. params. reason, "cancelled" ) ;
699699 ct. cancel ( ) ;
700700 }
701701 cancelled. into ( )
@@ -752,7 +752,7 @@ where
752752 if let Err ( e) = sink_close_result {
753753 tracing:: error!( %e, "fail to close sink" ) ;
754754 }
755- tracing:: info !( ?quit_reason, "serve finished" ) ;
755+ tracing:: debug !( ?quit_reason, "serve finished" ) ;
756756 quit_reason
757757 } ) ;
758758 Ok ( RunningService {
0 commit comments