Skip to content

Commit 140c1e3

Browse files
committed
improve streamable http sse logging
1 parent 38ac77c commit 140c1e3

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
@@ -397,7 +397,7 @@ func (c *StreamableHTTP) handleSSEResponse(ctx context.Context, reader io.ReadCl
397397

398398
var message JSONRPCResponse
399399
if err := json.Unmarshal([]byte(data), &message); err != nil {
400-
c.logger.Errorf("failed to unmarshal message: %v", err)
400+
c.logger.Infof("failed to unmarshal message (non-fatal): %v", err, "message", data)
401401
return
402402
}
403403

0 commit comments

Comments
 (0)