mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-12 12:21:34 +00:00
Allowing environment variable loglevel override.
This commit is contained in:
parent
9e44fe5524
commit
955715cde4
1 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ class Logger {
|
|||
|
||||
this.isDev = process.env.NODE_ENV !== 'production'
|
||||
this.logLevel = !this.isDev ? LogLevel.INFO : LogLevel.TRACE
|
||||
this.logLevel = process.env.LOG_LEVEL || this.logLevel
|
||||
this.socketListeners = []
|
||||
}
|
||||
|
||||
|
|
@ -148,4 +149,4 @@ class Logger {
|
|||
this.handleLog(LogLevel.NOTE, args, this.source)
|
||||
}
|
||||
}
|
||||
module.exports = new Logger()
|
||||
module.exports = new Logger()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue