Fix wrong type check

This commit is contained in:
Erik 2022-11-08 22:11:40 +02:00
parent 2c447f5cec
commit f80c950e71
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -24,7 +24,7 @@ class MasterLogger {
for (const type of this.types) {
Object.defineProperty(this, type, {
// Only write debug outputs if debug mode is enabled
value: (msg) => type === 'debug' && debug || type !== 'debug'
value: (msg) => msg.type === 'debug' && debug || msg.type !== 'debug'
? this.write(type, msg) : null
});
}