Skip to content

Commit 2852fca

Browse files
author
Theodore Li
committed
feat(log): enable info level logs for production
1 parent 66ce673 commit 2852fca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/logger/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const getLogLevel = (): string | undefined => {
5050
/**
5151
* Get the minimum log level from environment variable or use defaults
5252
* - Development: DEBUG (show all logs)
53-
* - Production: ERROR (only show errors, but can be overridden by LOG_LEVEL env var)
53+
* - Production: INFO (show info, warn, and error logs, but can be overridden by LOG_LEVEL env var)
5454
* - Test: ERROR (only show errors in tests)
5555
*/
5656
const getMinLogLevel = (): LogLevel => {
@@ -64,7 +64,7 @@ const getMinLogLevel = (): LogLevel => {
6464
case 'development':
6565
return LogLevel.DEBUG
6666
case 'production':
67-
return LogLevel.ERROR
67+
return LogLevel.INFO
6868
case 'test':
6969
return LogLevel.ERROR
7070
default:

0 commit comments

Comments
 (0)