mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-14 05:11:45 +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.isDev = process.env.NODE_ENV !== 'production'
|
||||||
this.logLevel = !this.isDev ? LogLevel.INFO : LogLevel.TRACE
|
this.logLevel = !this.isDev ? LogLevel.INFO : LogLevel.TRACE
|
||||||
|
this.logLevel = process.env.LOG_LEVEL || this.logLevel
|
||||||
this.socketListeners = []
|
this.socketListeners = []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue