Skip to content

Commit 785ad4e

Browse files
committed
fix log level
1 parent 4ecfa44 commit 785ad4e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/logger.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ const level = () => {
1515
const isDevelopment = env === 'development';
1616
const isProd = env === 'production';
1717
if (isProd) {
18-
return 'debug';
18+
if (process.env.LOG) {
19+
return 'debug';
20+
}
21+
return 'warn';
1922
}
2023
return isDevelopment ? 'debug' : 'warn';
2124
};

0 commit comments

Comments
 (0)