From caa451e3e60d3168952269f25d39a4592ddb5d85 Mon Sep 17 00:00:00 2001 From: Diogo Silva Date: Wed, 13 Jun 2018 17:13:27 +0100 Subject: [PATCH] fix: debug log error --- src/listener.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/listener.js b/src/listener.js index d271be9..a84449e 100644 --- a/src/listener.js +++ b/src/listener.js @@ -214,9 +214,8 @@ class Listener extends EE { (cb) => this._crypto(cb) ], (err) => { if (err) { - this.log('success', err) + this.log('error', err) if (!(err instanceof Error)) err = new Error(err) - log(err) this._down() this.emit('error', err) this.emit('close')