debug mode

This commit is contained in:
Erik 2023-03-23 21:16:37 +02:00
parent 8860d38d43
commit 332db8e340
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68

View File

@ -23,13 +23,13 @@ class LoggerClient {
}
this.guard = opts.guard || Defaults.ClientOptions.guard;
this.debug = opts.debug || Defaults.ClientOptions.debug;
this._debug = opts.debug || Defaults.ClientOptions.debug;
}
transport (message, opts) {
if (opts.type === 'debug' && !this.debug)
if (opts.type === 'debug' && !this._debug)
return;
if (typeof message !== 'string')