Skip to content

Commit fef0bb4

Browse files
committed
make it debug level
1 parent c01d88a commit fef0bb4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/opencode/src/lsp/client.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ export async function create(input: { serverID: string; server: LSPServer.Handle
131131
new StreamMessageReader(input.server.process.stdout as any),
132132
new StreamMessageWriter(input.server.process.stdin as any),
133133
)
134-
// LSP servers rarely write to stderr - when they do, it's almost always a
135-
// misconfiguration (wrong binary, bad args, missing deps) that otherwise
136-
// manifests as a silent 45s initialize timeout. Surface it at error level so
137-
// operators don't have to hunt.
134+
// Server stderr can contain both real errors and routine informational logs,
135+
// which is normal stderr practice for some tools. Keep the raw stream at
136+
// debug so users can opt in with --print-logs --log-level DEBUG without
137+
// polluting normal logs.
138138
input.server.process.stderr?.on("data", (data: Buffer) => {
139139
const text = data.toString().trim()
140-
if (text) l.error("server stderr", { text: text.slice(0, 1000) })
140+
if (text) l.debug("server stderr", { text: text.slice(0, 1000) })
141141
})
142142

143143
const pushDiagnostics = new Map<string, Diagnostic[]>()

0 commit comments

Comments
 (0)