From a225d4dc7ded92f5492651a1bc60499b3be27044 Mon Sep 17 00:00:00 2001 From: FanOne <294350394@qq.com> Date: Tue, 6 Jan 2026 01:29:40 +0800 Subject: [PATCH] delete the old logger in client (#744) Fix #708 Link PR #738 deleted the old logger in client. --- mcp/client.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mcp/client.go b/mcp/client.go index 66121f7..57c30fb 100644 --- a/mcp/client.go +++ b/mcp/client.go @@ -26,10 +26,8 @@ import ( // A Client is an MCP client, which may be connected to an MCP server // using the [Client.Connect] method. type Client struct { - impl *Implementation - opts ClientOptions - // Deprecated - logger *slog.Logger // TODO: file proposal to export this + impl *Implementation + opts ClientOptions mu sync.Mutex roots *featureSet[*Root] sessions []*ClientSession @@ -61,7 +59,6 @@ func NewClient(impl *Implementation, options *ClientOptions) *Client { return &Client{ impl: impl, opts: opts, - logger: ensureLogger(nil), // ensure we have a logger roots: newFeatureSet(func(r *Root) string { return r.URI }), sendingMethodHandler_: defaultSendingMethodHandler, receivingMethodHandler_: defaultReceivingMethodHandler[*ClientSession],