Skip to content

Commit b5f4460

Browse files
fix: Non-error logs from the MCP server are also output as error logs, causing abnormal server display. (RooCodeInc#2900)
* fix: Non-error logs from the MCP server are also output as error logs, causing abnormal server display.(RooCodeInc#2589) * Modified to make 'error' case-insensitive.(RooCodeInc#2589) Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * fix: use Prettier code style --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 9a5a0e1 commit b5f4460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/mcp/McpHub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export class McpHub {
255255
stderrStream.on("data", async (data: Buffer) => {
256256
const output = data.toString()
257257
// Check if output contains INFO level log
258-
const isInfoLog = /^\s*INFO\b/.test(output)
258+
const isInfoLog = !/\berror\b/i.test(output)
259259

260260
if (isInfoLog) {
261261
// Log normal informational messages

0 commit comments

Comments
 (0)