Ability to configure log level, default to 'warn' (#150)

This commit is contained in:
Simon J
2023-03-12 13:52:38 +11:00
committed by GitHub
parent e78b6c4fbc
commit 29531a6e01
3 changed files with 4 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ export function debugIt<T>(thing: T): T {
}
const logger = createLogger({
level: 'debug',
level: process.env["BNB_LOG_LEVEL"] || 'warn',
format: format.combine(
format.timestamp({
format: 'YYYY-MM-DD HH:mm:ss'