Skip to content

Commit

Permalink
fix: properly check if debug is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobheun committed Feb 20, 2019
1 parent 18a8ab1 commit 45597f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/channel.js
Expand Up @@ -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,
Expand Down

0 comments on commit 45597f9

Please sign in to comment.