Skip to content

Commit 31493cf

Browse files
Ma1oneZhangziyang zhang
andauthored
chore: decrease log level (#41)
Co-authored-by: ziyang zhang <[email protected]>
1 parent b3d655d commit 31493cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/mcp-server/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ where
6565
};
6666
// Log incoming message here before serde conversion to
6767
// track incomplete chunks which are not valid JSON
68-
tracing::info!(json = %line, "incoming message");
68+
tracing::debug!(json = %line, "incoming message");
6969

7070
// Parse JSON and validate message format
7171
match serde_json::from_str::<serde_json::Value>(&line) {
@@ -158,7 +158,7 @@ where
158158
let request_json = serde_json::to_string(&request)
159159
.unwrap_or_else(|_| "Failed to serialize request".to_string());
160160

161-
tracing::info!(
161+
tracing::debug!(
162162
request_id = ?id,
163163
method = ?request.method,
164164
json = %request_json,
@@ -188,7 +188,7 @@ where
188188
let response_json = serde_json::to_string(&response)
189189
.unwrap_or_else(|_| "Failed to serialize response".to_string());
190190

191-
tracing::info!(
191+
tracing::debug!(
192192
response_id = ?response.id,
193193
json = %response_json,
194194
"Sending response"

examples/servers/src/axum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async fn sse_handler(State(app): State<App>) -> Sse<impl Stream<Item = Result<Ev
102102
// it's 4KB
103103
const BUFFER_SIZE: usize = 1 << 12;
104104
let session = session_id();
105-
tracing::info!(%session, "sse connection");
105+
tracing::debug!(%session, "sse connection");
106106
let (c2s_read, c2s_write) = tokio::io::simplex(BUFFER_SIZE);
107107
let (s2c_read, s2c_write) = tokio::io::simplex(BUFFER_SIZE);
108108
app.txs

0 commit comments

Comments
 (0)