fix: Allow specifying log level (#1099)

Closes #1098
This commit is contained in:
Maurice Faber
2025-04-22 15:29:10 +02:00
committed by GitHub
parent 9bb18f44dc
commit 9f415e6b1e

View File

@@ -15,7 +15,7 @@ const logfile =
* Refer {@link https://github.com/winstonjs/winston#logging here}
* for more information on Winston log levels.
*/
const logLevel = 'warn'; // process.env.NODE_ENV === 'production' ? 'info' : 'debug';
const logLevel = 'LOG_LEVEL' in process.env ? process.env.LOG_LEVEL : 'warn';
const logFormat = winston.format.combine(
winston.format.uncolorize(),