chore: decrease log level (#41)

Co-authored-by: ziyang zhang <zhangziyang@stu.cdut.edu.cn>
This commit is contained in:
Ma1oneZhang 2025-03-21 12:32:34 +08:00 committed by GitHub
parent b3d655da31
commit 31493cfbcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -65,7 +65,7 @@ where
};
// Log incoming message here before serde conversion to
// track incomplete chunks which are not valid JSON
tracing::info!(json = %line, "incoming message");
tracing::debug!(json = %line, "incoming message");
// Parse JSON and validate message format
match serde_json::from_str::<serde_json::Value>(&line) {
@ -158,7 +158,7 @@ where
let request_json = serde_json::to_string(&request)
.unwrap_or_else(|_| "Failed to serialize request".to_string());
tracing::info!(
tracing::debug!(
request_id = ?id,
method = ?request.method,
json = %request_json,
@ -188,7 +188,7 @@ where
let response_json = serde_json::to_string(&response)
.unwrap_or_else(|_| "Failed to serialize response".to_string());
tracing::info!(
tracing::debug!(
response_id = ?response.id,
json = %response_json,
"Sending response"

View file

@ -102,7 +102,7 @@ async fn sse_handler(State(app): State<App>) -> Sse<impl Stream<Item = Result<Ev
// it's 4KB
const BUFFER_SIZE: usize = 1 << 12;
let session = session_id();
tracing::info!(%session, "sse connection");
tracing::debug!(%session, "sse connection");
let (c2s_read, c2s_write) = tokio::io::simplex(BUFFER_SIZE);
let (s2c_read, s2c_write) = tokio::io::simplex(BUFFER_SIZE);
app.txs