debug mode
This commit is contained in:
parent
8860d38d43
commit
332db8e340
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user