Skip to content

Commit

Permalink
fix(@angular-devkit/core): Make default and info log messages use def…
Browse files Browse the repository at this point in the history
…ault colors

Previously, we set the color to white, which is (nearly) invisible on
terminals with a white background.

Fixes #13439.
  • Loading branch information
mikelward authored and kyliau committed Jan 16, 2019
1 parent 4f358f4 commit 7d15c5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/angular_devkit/core/node/cli-logger.ts
Expand Up @@ -25,19 +25,19 @@ export function createConsoleLogger(
logger
.pipe(filter(entry => (entry.level != 'debug' || verbose)))
.subscribe(entry => {
let color: (s: string) => string = x => terminal.dim(terminal.white(x));
let color = terminal.dim;
let output = stdout;
switch (entry.level) {
case 'info':
color = terminal.white;
color = terminal.reset;
break;
case 'warn':
color = (x: string) => terminal.bold(terminal.yellow(x));
color = (s: string) => terminal.bold(terminal.yellow(s));
output = stderr;
break;
case 'fatal':
case 'error':
color = (x: string) => terminal.bold(terminal.red(x));
color = (s: string) => terminal.bold(terminal.red(s));
output = stderr;
break;
}
Expand Down

0 comments on commit 7d15c5d

Please sign in to comment.