{"action":"closed","issue":{"url":"https://api.github.com/repos/visionmedia/debug/issues/326","repository_url":"https://api.github.com/repos/visionmedia/debug","labels_url":"https://api.github.com/repos/visionmedia/debug/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/visionmedia/debug/issues/326/comments","events_url":"https://api.github.com/repos/visionmedia/debug/issues/326/events","html_url":"https://github.com/visionmedia/debug/issues/326","id":188563815,"number":326,"title":"feature: make it possible to set the global DEBUG rule in runtime","user":{"login":"fogine","id":7884288,"avatar_url":"https://avatars.githubusercontent.com/u/7884288?v=3","gravatar_id":"","url":"https://api.github.com/users/fogine","html_url":"https://github.com/fogine","followers_url":"https://api.github.com/users/fogine/followers","following_url":"https://api.github.com/users/fogine/following{/other_user}","gists_url":"https://api.github.com/users/fogine/gists{/gist_id}","starred_url":"https://api.github.com/users/fogine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fogine/subscriptions","organizations_url":"https://api.github.com/users/fogine/orgs","repos_url":"https://api.github.com/users/fogine/repos","events_url":"https://api.github.com/users/fogine/events{/privacy}","received_events_url":"https://api.github.com/users/fogine/received_events","type":"User","site_admin":false},"labels":[{"id":481450579,"url":"https://api.github.com/repos/visionmedia/debug/labels/Has%20PR","name":"Has PR","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-10T17:02:43Z","updated_at":"2016-12-14T22:23:59Z","closed_at":"2016-12-14T22:23:59Z","body":"Currently, once a debug function is exported from the debug module eg.:\r\n\r\n```javascript\r\nvar debug = require('debug')('worker');\r\n```\r\n\r\nIt's not possible to globally change enabled/disabled state of the debug function.\r\n\r\nThis'd come handy when you want to change the debug setup at runtime.\r\nIn 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."}}
{"actor":{"display_login":"thebigredgeek"}}