Skip to content

Commit e9c0c96

Browse files
committed
Label stderr/stdout from shared process
1 parent d0e497f commit e9c0c96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/server/src/vscode/sharedProcess.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { StdioIpcHandler } from "../ipc";
88
import { ParsedArgs } from "vs/platform/environment/common/environment";
99
import { Emitter } from "@coder/events/src";
1010
import { retry } from "@coder/ide/src/retry";
11-
import { logger, Level } from "@coder/logger";
11+
import { logger, field, Level } from "@coder/logger";
1212

1313
export enum SharedProcessState {
1414
Stopped,
@@ -127,13 +127,13 @@ export class SharedProcess {
127127
activeProcess.on("exit", doReject);
128128

129129
activeProcess.stdout.on("data", (data) => {
130-
logger.trace(data.toString());
130+
logger.trace("stdout", field("data", data.toString()));
131131
});
132132

133133
activeProcess.stderr.on("data", (data) => {
134134
// Warn instead of error to prevent panic. It's unlikely stderr here is
135135
// about anything critical to the functioning of the editor.
136-
logger.warn(data.toString());
136+
logger.warn("stderr", field("data", data.toString()));
137137
});
138138

139139
this.ipcHandler = new StdioIpcHandler(activeProcess);

0 commit comments

Comments
 (0)