Skip to content

Commit acad27f

Browse files
committed
fix: Console should follow LOG_LEVEL env if present
1 parent 1659a6d commit acad27f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/funcs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const parseLogOptions = (config: LogOptions = {}, options?: FileLogPathOp
5555
const {
5656
level = configLevel || defaultLevel,
5757
file = configLevel || defaultLevel,
58-
console = configLevel || 'debug',
58+
console = configLevel || envLevel || 'debug',
5959
} = config;
6060

6161
let fileObj: FileLogOptionsParsed;

0 commit comments

Comments
 (0)