Skip to content

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

Closed

Description

@fogine

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.

Activity

  1. thebigredgeek commented on Nov 14, 2016

    @thebigredgeek
    Contributor

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

  2. added
    has-pr
    on Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    has-pr

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions