Skip to content

Commit

Permalink
fix: missing colors on terminal (#3049)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed Mar 8, 2022
1 parent 1221ffd commit 0f51a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/logger/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function setup(options: LoggerConfig | LoggerConfigItem = [DEFAULT_LOGGER
);
}
const pinoConfig = { level: loggerConfig.level };
let colors = loggerConfig?.colors === true ? process.stdout.isTTY : false;
let colors = typeof loggerConfig?.colors === 'boolean' ? Boolean(loggerConfig?.colors) : process.stdout.isTTY;
if ('EXPERIMENTAL_VERDACCIO_LOGGER_COLORS' in process.env) {
colors = process.env.EXPERIMENTAL_VERDACCIO_LOGGER_COLORS != 'false';
}
Expand Down

0 comments on commit 0f51a6c

Please sign in to comment.