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