Skip to content

Commit

Permalink
fix: always log errors and warnings for apps
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Feb 15, 2024
1 parent 8ba9a36 commit ae7923e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions angular/devkit/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,11 @@ export function normalizePath(path: string = '', removeTrailingSlashes = false):

export function getLoggerApi(logger: Logger) {
return {
error: (m: string) => logger.consoleFailure(m),
error: (m: string) => console.error(m),
log: (m: string) => logger.console(m),
warn: (m: string) => logger.consoleWarning(m),
warn: (m: string) => console.warn(m),
info: (m: string) => logger.console(m),
colorMessage: (m: string) => logger.console(m),
colorMessage: (m: string) => console.log(m),
createChild: () => logger
} as any;
}

0 comments on commit ae7923e

Please sign in to comment.