Skip to content
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
@bmcallis

Description

@bmcallis

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions