Skip to content

Commit

Permalink
For client, move println! and eprintln! to tracing (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeadie authored Feb 20, 2025
1 parent e38617a commit 3af2bf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/mcp-client/src/transport/sse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl SseActor {
.join(&e.data)
.expect("Failed to resolve endpoint URL");

println!("Discovered SSE POST endpoint: {}", post_url);
tracing::debug!("Discovered SSE POST endpoint: {}", post_url);
*post_endpoint.write().await = Some(post_url.to_string());
break;
}
Expand Down Expand Up @@ -129,7 +129,7 @@ impl SseActor {
}

// SSE stream ended or errored; signal any pending requests
eprintln!("SSE stream ended or encountered an error; clearing pending requests.");
tracing::error!("SSE stream ended or encountered an error; clearing pending requests.");
pending_requests.clear().await;
}

Expand Down Expand Up @@ -200,7 +200,7 @@ impl SseActor {
}

// mpsc channel closed => no more outgoing messages
eprintln!("SseActor: outgoing message loop ended. Clearing pending requests.");
tracing::error!("SseActor: outgoing message loop ended. Clearing pending requests.");
pending_requests.clear().await;
}
}
Expand Down

0 comments on commit 3af2bf8

Please sign in to comment.