From 332db8e340568f2519d063650cc7a4a385ad31cb Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 23 Mar 2023 21:16:37 +0200 Subject: [PATCH] debug mode --- src/LoggerClient.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')