From 0c3ee605b28c63dfb74d71610a856fdf45ee86e1 Mon Sep 17 00:00:00 2001 From: hkr04 Date: Sun, 30 Mar 2025 17:34:18 +0800 Subject: [PATCH] stdio_client: change JSON parse error behavior to inform --- src/mcp_stdio_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mcp_stdio_client.cpp b/src/mcp_stdio_client.cpp index 8d89a90..27fa610 100644 --- a/src/mcp_stdio_client.cpp +++ b/src/mcp_stdio_client.cpp @@ -646,7 +646,7 @@ void stdio_client::read_thread_func() { } } } catch (const json::exception& e) { - LOG_ERROR("Failed to parse JSON-RPC message: ", e.what(), ", message: ", line); + LOG_INFO("message: ", line); } } } @@ -755,7 +755,7 @@ void stdio_client::read_thread_func() { } } } catch (const json::exception& e) { - LOG_ERROR("Failed to parse JSON-RPC message: ", e.what(), ", message: ", line); + LOG_INFO("message: ", line); } } }