mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-07 08:34:10 +01:00
Disregard socketListener.level if level >= FATAL
This commit is contained in:
parent
220f7ef7cd
commit
03ff5d8ae1
@ -86,7 +86,7 @@ class Logger {
|
||||
|
||||
// Emit log to sockets that are listening to log events
|
||||
this.socketListeners.forEach((socketListener) => {
|
||||
if (socketListener.level <= level) {
|
||||
if (level >= LogLevel.FATAL || level >= socketListener.level) {
|
||||
socketListener.socket.emit('log', logObj)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user