diff options
Diffstat (limited to 'lib/binance.js')
| -rw-r--r-- | lib/binance.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/binance.js b/lib/binance.js index 98fdd098..cda6fd66 100644 --- a/lib/binance.js +++ b/lib/binance.js @@ -20,9 +20,13 @@ module.exports = () => { app.set("last", msg.c); app.set("rates", rates); } catch (e) { - l.error("binance socket error", e.message); + l.error("binance message error", e.message); } }; + binance.onerror = async function (error) { + console.log("binance socket error", error); + } + return binance; }; |
