From ada8103618b0188155ad77e73d4044adf3e189e6 Mon Sep 17 00:00:00 2001 From: benesjan Date: Wed, 16 Aug 2023 14:29:06 +0000 Subject: [PATCH] fix: logger not calling toUpperCase --- yarn-project/foundation/src/log/logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn-project/foundation/src/log/logger.ts b/yarn-project/foundation/src/log/logger.ts index 77aceb36efea..6df216eac160 100644 --- a/yarn-project/foundation/src/log/logger.ts +++ b/yarn-project/foundation/src/log/logger.ts @@ -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;