From 45597f9135b0bacb812b73d1cd44100eadfb6bfe Mon Sep 17 00:00:00 2001 From: Jacob Heun Date: Wed, 20 Feb 2019 18:28:05 +0100 Subject: [PATCH] fix: properly check if debug is enabled --- src/channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel.js b/src/channel.js index e663c8f..a3a7422 100644 --- a/src/channel.js +++ b/src/channel.js @@ -135,7 +135,7 @@ class Channel extends EE { * @param {Buffer|string} data Logged with the metadata. Must be `.toString` capable. Default: `''` */ _log (name, data) { - if (!debug.enabled) return + if (!log.enabled) return log({ op: name, name: this._name,