From 984d1e75ecd62d769536a89127fa5dcfff8325b2 Mon Sep 17 00:00:00 2001 From: PaulSzymanski <519954+PaulSzymanski@users.noreply.github.com> Date: Tue, 24 Mar 2020 15:23:20 +0100 Subject: [PATCH] Less logging --- server/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/index.js b/server/index.js index 2c53951..251c9ac 100644 --- a/server/index.js +++ b/server/index.js @@ -105,10 +105,10 @@ class SnapdropServer { } _send(peer, message) { - if (!peer) return console.error('undefined peer'); - if (this._wss.readyState !== this._wss.OPEN) return console.error('Socket is closed'); + if (!peer) return; + if (this._wss.readyState !== this._wss.OPEN) return; message = JSON.stringify(message); - peer.socket.send(message, error => error ? console.log(error): ''); + peer.socket.send(message, error => ''); } _keepAlive(peer) {