From 80e94ef9b634c52e5c2574d66991222bfa6b4bb0 Mon Sep 17 00:00:00 2001 From: Alex <12097569+nialexsan@users.noreply.github.com> Date: Fri, 3 Nov 2023 16:02:11 -0400 Subject: [PATCH] Update packages/util-logger/src/util-logger.ts --- packages/util-logger/src/util-logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/util-logger/src/util-logger.ts b/packages/util-logger/src/util-logger.ts index b69a58f14..566edaa08 100644 --- a/packages/util-logger/src/util-logger.ts +++ b/packages/util-logger/src/util-logger.ts @@ -61,7 +61,7 @@ export const log = async (options: { always?: boolean }) => { const {title, message, level, always} = options - const configLoggerLevel = await config.get("logger.level", LEVELS.warn) + const configLoggerLevel = (await config?.()?.get("logger.level")) ?? LEVELS.warn // If config level is below message level then don't show it if (!always && configLoggerLevel < level) return