Skip to content

Manage process.env.DEBUG to match namespace #6

@loic-moriame

Description

@loic-moriame

The management of process.env.DEBUG without searching to match a namespace isn't ideal when you develop a CLI with module debug

Indeed, when I try to debug my CLI a have a lot of message from ssllabs that I didn't want at this moment:

Line 220 :

process.env.DEBUG && console.log(`ASSESSMENTS: ${api.info.currentAssessments}/${api.info.maxAssessments}`);

Line 272 :

process.env.DEBUG && console.log(httpOptions);

Line 293 :

process.env.DEBUG && console.log(data);

I will try to make a PR to implement debug module if you are agree with it

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