This repository was archived by the owner on Sep 10, 2024. It is now read-only.
This repository was archived by the owner on Sep 10, 2024. It is now read-only.
Can't turn off debug logging #34
Closed
Description
Debug logging is always on for bots, regardless of the debug flag.
It appears that this is the problem code
self.out.debug = function() {
if (!this.debug) return;
util.log.apply(util, arguments);
};
this.debug
is that function, so it's never falsey which means that the log always happens. I believe that checking self.opt.debug
instead will achieve the desired results, but I'm not sure if that's the "right" fix.
Metadata
Metadata
Assignees
Labels
No labels