Logging updates (including reported SonicBoom error)#1158
Logging updates (including reported SonicBoom error)#1158BobDickinson wants to merge 3 commits intomodelcontextprotocol:v1.5/mainfrom
Conversation
…ated client readmes. Made logging initializaiton async so we have logging ready before app runs or does an early exit (this addresses the SonicBoom errors seen on early app termination). Reorganized shared logging code (which is node code) into core/logging/node. Fixed CLI error reporting through launcher (just error message now, no stack trace).
|
@claude review |
|
Claude finished @BobDickinson's task in 1m 35s —— View job Code Review
Overall this is a well-structured improvement. The core fix (awaiting the SonicBoom Issues1. Browser components importing from
// clients/web/src/components/AuthDebugger.tsx
import { silentLogger } from "@modelcontextprotocol/inspector-core/logging/node";The The old 2. Missing logger
// clients/web/src/web.ts:260
const logger = process.env.MCP_LOG_FILE
? await createFileLogger({
dest: process.env.MCP_LOG_FILE,
append: true,
mkdir: true,
level: "info",
// missing: name: "mcp-inspector-web"
})
: silentLogger;Log lines from the web runner won't have a Minor Observations
What Works Well
|
|
Claude review feedback implemented. |
Summary
Made logging consistent between all clients (using MCP_LOG_FILE), updated client readmes. Made logging initialization async so we have logging ready before app startup processing or early exit (this addresses the SonicBoom errors seen on early app termination). Reorganized shared logging code (which is node code) into core/logging/node. Fixed CLI error reporting through launcher (just error message now, no stack trace). Made logger required throughout using silentLogger (null logger) as default.
Testing
Checklist
npm run prettier-fix)