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

feature: make it possible to set the global DEBUG rule in runtime #326

Closed
fogine opened this issue Nov 10, 2016 · 1 comment
Closed

feature: make it possible to set the global DEBUG rule in runtime #326

fogine opened this issue Nov 10, 2016 · 1 comment
Labels
has-pr This issue has an accompanying pull request

Comments

@fogine
Copy link

fogine commented Nov 10, 2016

Currently, once a debug function is exported from the debug module eg.:

var debug = require('debug')('worker');

It's not possible to globally change enabled/disabled state of the debug function.

This'd come handy when you want to change the debug setup at runtime.
In other words, if a node process is established with disabled debug, I'd like to have an option to set the global DEBUG rule and enable some debug functions without restarting the node process.

@thebigredgeek
Copy link
Contributor

@fogine we have an open PR linked above. Feel free to jump into the conversation :)

@thebigredgeek thebigredgeek added the has-pr This issue has an accompanying pull request label Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has-pr This issue has an accompanying pull request
Development

No branches or pull requests

2 participants