Skip to content

Commit

Permalink
Update packages/util-logger/src/util-logger.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nialexsan authored Nov 3, 2023
1 parent da3bc15 commit 80e94ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/util-logger/src/util-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<number>("logger.level")) ?? LEVELS.warn

// If config level is below message level then don't show it
if (!always && configLoggerLevel < level) return
Expand Down

0 comments on commit 80e94ef

Please sign in to comment.