@@ -147,7 +147,7 @@ impl PeerConnection {
147
147
let last_packet_id = remote_conn. last_packet_id . clone ( ) ;
148
148
149
149
let keep_alive_handle = tokio:: spawn ( async move {
150
- tracing:: info !(
150
+ tracing:: debug !(
151
151
target: "freenet_core::transport::keepalive_lifecycle" ,
152
152
remote = ?remote_addr,
153
153
"Keep-alive task STARTED for connection"
@@ -170,7 +170,7 @@ impl PeerConnection {
170
170
let elapsed_since_start = task_start. elapsed ( ) ;
171
171
let elapsed_since_last_tick = tick_start. elapsed ( ) ;
172
172
173
- tracing:: info !(
173
+ tracing:: trace !(
174
174
target: "freenet_core::transport::keepalive_lifecycle" ,
175
175
remote = ?remote_addr,
176
176
tick_count,
@@ -196,7 +196,7 @@ impl PeerConnection {
196
196
197
197
// Send the keep-alive packet
198
198
let send_time = std:: time:: Instant :: now ( ) ;
199
- tracing:: info !(
199
+ tracing:: debug !(
200
200
target: "freenet_core::transport::keepalive_lifecycle" ,
201
201
remote = ?remote_addr,
202
202
packet_id,
@@ -207,7 +207,7 @@ impl PeerConnection {
207
207
match outbound_packets. send ( ( remote_addr, noop_packet) ) . await {
208
208
Ok ( _) => {
209
209
let send_duration = send_time. elapsed ( ) ;
210
- tracing:: info !(
210
+ tracing:: trace !(
211
211
target: "freenet_core::transport::keepalive_lifecycle" ,
212
212
remote = ?remote_addr,
213
213
packet_id,
@@ -239,7 +239,7 @@ impl PeerConnection {
239
239
) ;
240
240
} ) ;
241
241
242
- tracing:: info !( remote = ?remote_addr, "PeerConnection created with persistent keep-alive task" ) ;
242
+ tracing:: debug !( remote = ?remote_addr, "PeerConnection created with persistent keep-alive task" ) ;
243
243
244
244
Self {
245
245
remote_conn,
@@ -467,7 +467,7 @@ impl PeerConnection {
467
467
// Log keep-alive packets specifically
468
468
if matches!( payload, SymmetricMessagePayload :: NoOp ) {
469
469
if confirm_receipt. is_empty( ) {
470
- tracing:: info !(
470
+ tracing:: trace !(
471
471
target: "freenet_core::transport::keepalive_received" ,
472
472
remote = ?self . remote_conn. remote_addr,
473
473
packet_id,
@@ -524,7 +524,7 @@ impl PeerConnection {
524
524
( ReportResult :: QueueFull , _) | ( _, true ) => {
525
525
let receipts = self . received_tracker. get_receipts( ) ;
526
526
if !receipts. is_empty( ) {
527
- tracing:: info !(
527
+ tracing:: trace !(
528
528
target: "freenet_core::transport::keepalive_response" ,
529
529
remote = ?self . remote_conn. remote_addr,
530
530
receipt_count = receipts. len( ) ,
@@ -615,7 +615,7 @@ impl PeerConnection {
615
615
// Connection is healthy, log periodically with more details
616
616
let health_check_interval = 5.0 ; // Log every 5 seconds
617
617
if elapsed. as_secs_f64( ) % health_check_interval < 1.0 {
618
- tracing:: info !(
618
+ tracing:: trace !(
619
619
target: "freenet_core::transport::keepalive_health" ,
620
620
remote = ?self . remote_conn. remote_addr,
621
621
elapsed_seconds = elapsed. as_secs_f64( ) ,
0 commit comments