diff --git a/src/LoggerClient.js b/src/LoggerClient.js index 01fd42e..4bcff0e 100644 --- a/src/LoggerClient.js +++ b/src/LoggerClient.js @@ -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')