8000 Update node to 10.15.1 by code-asher · Pull Request #472 · coder/code-server · GitHub
[go: up one dir, main page]

Skip to content

Update node to 10.15.1 #472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Apr 16, 2019
Prev Previous commit
Next Next commit
Label stderr/stdout from shared process
  • Loading branch information
code-asher committed Apr 9, 2019
commit e9c0c965bfde782b07271e87f6f4e17db7631577
6 changes: 3 additions & 3 deletions packages/server/src/vscode/sharedProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { StdioIpcHandler } from "../ipc";
import { ParsedArgs } from "vs/platform/environment/common/environment";
import { Emitter } from "@coder/events/src";
import { retry } from "@coder/ide/src/retry";
import { logger, Level } from "@coder/logger";
import { logger, field, Level } from "@coder/logger";

export enum SharedProcessState {
Stopped,
Expand Down Expand Up @@ -127,13 +127,13 @@ export class SharedProcess {
activeProcess.on("exit", doReject);

activeProcess.stdout.on("data", (data) => {
logger.trace(data.toString());
logger.trace("stdout", field("data", data.toString()));
});

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

this.ipcHandler = new StdioIpcHandler(activeProcess);
Expand Down
0