Skip to content

Commit

Permalink
fix: logger not calling toUpperCase
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Aug 16, 2023
1 parent 49390be commit ada8103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/foundation/src/log/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function logWithDebug(debug: debug.Debugger, level: LogLevel, args: any[]) {
* @returns Log prefix.
*/
function getPrefix(debugLogger: debug.Debugger, level: LogLevel) {
const levelLabel = currentLevel !== level ? ` ${level.toUpperCase}` : '';
const levelLabel = currentLevel !== level ? ` ${level.toUpperCase()}` : '';
const prefix = `${debugLogger.namespace.replace(/^aztec:/, '')}${levelLabel}`;
if (!isNode || !isatty(process.stderr.fd)) return prefix;
const colorIndex = debug.selectColor(debugLogger.namespace) as number;
Expand Down

0 comments on commit ada8103

Please sign in to comment.