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.
This commit is contained in:
Jérémie Astori 2016-08-06 14:14:38 -04:00
parent 376fdee8b1
commit a0315b13d1

View File

@ -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({