Skip to content

Commit eb43178

Browse files
committed
fix log
1 parent 5a3f37a commit eb43178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/transport/streamable_http.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,15 @@ func (c *StreamableHTTP) handleSSEResponse(ctx context.Context, reader io.ReadCl
248248

249249
var message JSONRPCResponse
250250
if err := json.Unmarshal([]byte(data), &message); err != nil {
251-
fmt.Printf("failed to unmarshal message: %v", err)
251+
fmt.Printf("failed to unmarshal message: %v\n", err)
252252
return
253253
}
254254

255255
// Handle notification
256256
if message.ID == nil {
257257
var notification mcp.JSONRPCNotification
258258
if err := json.Unmarshal([]byte(data), &notification); err != nil {
259-
fmt.Printf("failed to unmarshal notification: %v", err)
259+
fmt.Printf("failed to unmarshal notification: %v\n", err)
260260
return
261261
}
262262
c.notifyMu.RLock()

0 commit comments

Comments
 (0)