Don't catch checkLogLevel

This commit is contained in:
Christopher Hoskin 2020-08-11 10:48:44 +01:00
parent 9b21292b44
commit 20f2e1eb1d

View file

@ -270,9 +270,7 @@ const Logger = (module.exports = {
return return
} }
// check for log level override on startup // check for log level override on startup
this.checkLogLevel().catch((error) => { this.checkLogLevel()
console.log(error)
})
// re-check log level every minute // re-check log level every minute
this.checkInterval = setInterval(this.checkLogLevel.bind(this), 1000 * 60) this.checkInterval = setInterval(this.checkLogLevel.bind(this), 1000 * 60)
} }