@@ -527,9 +527,9 @@ where
527
527
tokio:: sync:: mpsc:: channel :: < TxJsonRpcMessage < R > > ( SINK_PROXY_BUFFER_SIZE ) ;
528
528
529
529
if R :: IS_CLIENT {
530
- tracing:: info !( ?peer_info, "Service initialized as client" ) ;
530
+ tracing:: debug !( ?peer_info, "Service initialized as client" ) ;
531
531
} else {
532
- tracing:: info !( ?peer_info, "Service initialized as server" ) ;
532
+ tracing:: debug !( ?peer_info, "Service initialized as server" ) ;
533
533
}
534
534
535
535
let ( peer, mut peer_proxy) = <Peer < R > >:: new ( id_provider, peer_info) ;
@@ -572,7 +572,7 @@ where
572
572
Event :: PeerMessage ( m)
573
573
} else {
574
574
// input stream closed
575
- tracing:: info !( "input stream terminated" ) ;
575
+ tracing:: debug !( "input stream terminated" ) ;
576
576
break QuitReason :: Closed
577
577
}
578
578
}
@@ -584,7 +584,7 @@ where
584
584
}
585
585
}
586
586
_ = serve_loop_ct. cancelled( ) => {
587
- tracing:: info !( "task cancelled" ) ;
587
+ tracing:: debug !( "task cancelled" ) ;
588
588
break QuitReason :: Cancelled
589
589
}
590
590
}
@@ -646,7 +646,7 @@ where
646
646
let _ = responder. send ( response) ;
647
647
if let Some ( param) = cancellation_param {
648
648
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" ) ;
650
650
let _response_result = responder. send ( Err ( ServiceError :: Cancelled {
651
651
reason : param. reason . clone ( ) ,
652
652
} ) ) ;
@@ -656,7 +656,7 @@ where
656
656
Event :: PeerMessage ( JsonRpcMessage :: Request ( JsonRpcRequest {
657
657
id, request, ..
658
658
} ) ) => {
659
- tracing:: info !( %id, ?request, "received request" ) ;
659
+ tracing:: debug !( %id, ?request, "received request" ) ;
660
660
{
661
661
let service = shared_service. clone ( ) ;
662
662
let sink = sink_proxy_tx. clone ( ) ;
@@ -674,11 +674,11 @@ where
674
674
let result = service. handle_request ( request, context) . await ;
675
675
let response = match result {
676
676
Ok ( result) => {
677
- tracing:: info !( %id, ?result, "response message" ) ;
677
+ tracing:: debug !( %id, ?result, "response message" ) ;
678
678
JsonRpcMessage :: response ( result, id)
679
679
}
680
680
Err ( error) => {
681
- tracing:: warn !( %id, ?error, "response error" ) ;
681
+ tracing:: debug !( %id, ?error, "response error" ) ;
682
682
JsonRpcMessage :: error ( error, id)
683
683
}
684
684
} ;
@@ -690,12 +690,12 @@ where
690
690
notification,
691
691
..
692
692
} ) ) => {
693
- tracing:: info !( ?notification, "received notification" ) ;
693
+ tracing:: debug !( ?notification, "received notification" ) ;
694
694
// catch cancelled notification
695
695
let notification = match notification. try_into ( ) {
696
696
Ok :: < CancelledNotification , _ > ( cancelled) => {
697
697
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" ) ;
699
699
ct. cancel ( ) ;
700
700
}
701
701
cancelled. into ( )
@@ -752,7 +752,7 @@ where
752
752
if let Err ( e) = sink_close_result {
753
753
tracing:: error!( %e, "fail to close sink" ) ;
754
754
}
755
- tracing:: info !( ?quit_reason, "serve finished" ) ;
755
+ tracing:: debug !( ?quit_reason, "serve finished" ) ;
756
756
quit_reason
757
757
} ) ;
758
758
Ok ( RunningService {
0 commit comments