From cbf0ff535c4b6d9f8a2f6c6c336812d1c0ed2961 Mon Sep 17 00:00:00 2001 From: aragossa <37149556+aragossa@users.noreply.github.com> Date: Thu, 15 Oct 2026 13:25:46 +0300 Subject: [PATCH] Log HTTP request bodies and tool responses at debug level --- pkg/server/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/server/server.go b/pkg/server/server.go index 770f862..2edf008 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -393,7 +393,7 @@ func (s *Server) handleMCPHTTP(w http.ResponseWriter, r *http.Request) { return } - s.logger.Info("Request body: %s", string(body)) + s.logger.Debug("Request body: %s", string(body)) // Parse the JSON-RPC request var req map[string]interface{} @@ -444,7 +444,7 @@ func (s *Server) handleMCPHTTP(w http.ResponseWriter, r *http.Request) { } w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusOK) - s.logger.Info("Response: %s", string(respBytes)) + s.logger.Debug("Response: %s", string(respBytes)) if _, err := w.Write(respBytes); err != nil { s.logger.Error("Failed to write response: %v", err) } @@ -470,7 +470,7 @@ func (s *Server) handleMCPHTTP(w http.ResponseWriter, r *http.Request) { } respBytes = b } - s.logger.Info("Response: %s", string(respBytes)) + s.logger.Debug("Response: %s", string(respBytes)) w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusOK) if _, err := w.Write(respBytes); err != nil {