Skip to content

Commit c87c957

Browse files
improve streamable http sse logging (#508)
1 parent a6f260b commit c87c957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/transport/streamable_http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ func (c *StreamableHTTP) handleSSEResponse(ctx context.Context, reader io.ReadCl
425425
// Try to unmarshal as a response first
426426
var message JSONRPCResponse
427427
if err := json.Unmarshal([]byte(data), &message); err != nil {
428-
c.logger.Errorf("failed to unmarshal message: %v", err)
428+
c.logger.Infof("failed to unmarshal message (non-fatal): %v", err, "message", data)
429429
return
430430
}
431431

0 commit comments

Comments
 (0)