We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 104fed9 commit d6f083cCopy full SHA for d6f083c
packages/api/src/main.ts
@@ -26,9 +26,8 @@ Options:
26
// Get log level from command parameters or environment variable
27
let minLogLevel = process.argv.includes('--log-level')
28
? process.argv[process.argv.indexOf('--log-level') + 1]
29
- : process.env.NODE_ENV === 'production'
30
- ? 'warn'
31
- : 'verbose';
+ : process.env.LOG_LEVEL ||
+ (process.env.NODE_ENV === 'production' ? 'warn' : 'verbose');
32
33
// Validate and normalize the log level
34
if (!logLevels.includes(minLogLevel as LogLevel)) {
0 commit comments