Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't disable namespace #550

Closed
genadyp opened this issue Mar 1, 2018 · 2 comments
Closed

can't disable namespace #550

genadyp opened this issue Mar 1, 2018 · 2 comments
Labels
bug This issue identifies a malfunction

Comments

@genadyp
Copy link

genadyp commented Mar 1, 2018

environment: node

I use same namespace across few files.
When I disable namespace in one file

    let namespaces = enabledNamespaces()
    const index = namespaces.indexOf(namespace)
    namespaces[index] = `-${namespace}`
    debug.enable(namespaces.join())

in other other file I see that debug doesn't have this namespace in the list of names, but the namespace still enabled and there is an output.

@Qix- Qix- added bug This issue identifies a malfunction question This issue asks a question or requests usage support labels Jun 20, 2018
@Qix- Qix- removed the question This issue asks a question or requests usage support label Sep 11, 2018
@Qix-
Copy link
Member

Qix- commented Sep 11, 2018

Agreed, the behavior surrounding the global namespaces array is bizarre and unintuitive.

@Qix- Qix- modified the milestone: 5.x Dec 18, 2018
@Qix-
Copy link
Member

Qix- commented Dec 18, 2018

See #425

@Qix- Qix- closed this as completed Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue identifies a malfunction
Development

No branches or pull requests

2 participants