mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-27 22:59:51 -05:00
fix: missing colors on terminal (#3049)
This commit is contained in:
parent
1221ffd512
commit
0f51a6ced5
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue