Skip to content

Commit

Permalink
Undo getEnv changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Nov 7, 2024
1 parent bca0a71 commit eaa8f48
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import { resolve } from 'path';
import { RemoteConsole } from 'vscode-languageserver/node';
import { fsProvider } from '../fs-provider';

// function getEnv() {
// if (typeof process !== undefined) {
// return process.env;
// } else {
// return {};
// }
// }
function getEnv() {
if (typeof process !== undefined) {
return process.env;
} else {
return {};
}
}

// Log debugging to the ELS package root, if possible
// eslint-disable-next-line no-extra-boolean-cast
const debug = true;
const debug = !!getEnv().CI ? true : getEnv().ELS_DEBUG || false;
const log_file = debug ? fsProvider().createWriteStream(resolve(__dirname, `../../debug.${process.pid}.log`), { flags: 'w' }) : null;

let remoteConsole: RemoteConsole | null = null;
Expand Down

0 comments on commit eaa8f48

Please sign in to comment.