From a0315b13d1c84a05f6588c6587ce072fe9b598a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Sat, 6 Aug 2016 14:14:38 -0400 Subject: [PATCH] Disable debug logs in npm releases This is temporary until https://github.com/thelounge/lounge/issues/459, but meanwhile we should not be spamming connection debug messages in releases or pre-releases. --- src/plugins/irc-events/connection.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/irc-events/connection.js b/src/plugins/irc-events/connection.js index 82287619..72b4b7cd 100644 --- a/src/plugins/irc-events/connection.js +++ b/src/plugins/irc-events/connection.js @@ -74,9 +74,10 @@ module.exports = function(irc, network) { }); } - irc.on("debug", function(message) { - log.debug("[" + client.name + " (#" + client.id + ") on " + network.name + " (#" + network.id + ")]", message); - }); + // TODO Add a debug mode. See https://github.com/thelounge/lounge/issues/459 + // irc.on("debug", function(message) { + // log.debug("[" + client.name + " (#" + client.id + ") on " + network.name + " (#" + network.id + ")]", message); + // }); irc.on("socket error", function(err) { network.channels[0].pushMessage(client, new Msg({