Merge pull request #546 from thelounge/astorije/no-debug-in-releases

Disable debug logs in npm releases
This commit is contained in:
Maxime Poulin 2016-08-06 14:57:41 -04:00 committed by GitHub
commit 5c19b723f5

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