From 146a2d69860976ca576daba2a83b74de06d9029d Mon Sep 17 00:00:00 2001 From: lhear <121179341+lhear@users.noreply.github.com> Date: Sat, 30 May 2026 14:10:03 +0800 Subject: [PATCH] chore: simplify connection and handshake log fields --- src/client/connection.rs | 3 +-- src/client/handshake.rs | 3 +-- src/server/handlers.rs | 5 ++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/client/connection.rs b/src/client/connection.rs index fbeffa3..850717d 100644 --- a/src/client/connection.rs +++ b/src/client/connection.rs @@ -231,8 +231,7 @@ async fn handle_plain_proxy( &state.traffic_config, )?; - info!(target = %target_host, initial_bytes = %payload.len(), - body_len = %early_data.len(), frames_sent = %frames_sent, "connection initiated"); + info!(target = %target_host, "connection initiated"); let response = tokio::time::timeout( DOWNLOAD_CONNECT_TIMEOUT, diff --git a/src/client/handshake.rs b/src/client/handshake.rs index ab22b1c..92e6a31 100644 --- a/src/client/handshake.rs +++ b/src/client/handshake.rs @@ -291,8 +291,7 @@ pub async fn full_handshake( &state.traffic_config, )?; - info!(session_id = %session_id, target = %target_host, - body_len = %early_data.len(), frames_sent = %frames_sent, "PQ tunnel established"); + info!(session_id = %session_id, target = %target_host, "PQ tunnel established"); let response = tokio::time::timeout( DOWNLOAD_CONNECT_TIMEOUT, diff --git a/src/server/handlers.rs b/src/server/handlers.rs index aa04047..62254ae 100644 --- a/src/server/handlers.rs +++ b/src/server/handlers.rs @@ -176,7 +176,7 @@ async fn handle_plaintext_download( .ok_or_else(|| ServerError::bad_request("missing X-Target header"))?; span.record("target", target); - info!(user = %user, target = %target, body_len = %early_data.len(), "connection initiated"); + info!(user = %user, target = %target, "connection initiated"); let (host, port_str) = target .rsplit_once(':') @@ -382,8 +382,7 @@ async fn handle_pq_download( return Err(ServerError::bad_request("invalid session cookie format")); } let (session_id, enc_target_b64, enc_nonce_b64) = (parts[0], parts[1], parts[2]); - info!(session_id = %session_id, body_len = %early_data.len(), - "session resumption: download request received"); + info!(session_id = %session_id, "session resumption: download request received"); let entry = state .master_store