diff options
| author | Adam Soltys <[email protected]> | 2020-12-18 21:09:47 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-12-18 21:09:47 -0800 |
| commit | 95027e47b8d585eed574c6e4a305d6477e60208e (patch) | |
| tree | 4d384efd52a2f2deac4a1db9c618a7c669f3e17e | |
| parent | 24519e69921617d1f9639ef3e65a19539e640a78 (diff) | |
| download | coinos-server-95027e47b8d585eed574c6e4a305d6477e60208e.tar.gz coinos-server-95027e47b8d585eed574c6e4a305d6477e60208e.zip | |
log binance socket errors
| -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; }; |
