mirror of
https://github.com/debug-js/debug.git
synced 2026-01-25 16:42:28 +00:00
example: remove console.info() log usage
Annoying since the Web Inspector will add an exclamation point with a blue circle around it to any debug() calls when `info()` is used.
This commit is contained in:
parent
09e31bb47a
commit
4c8e3d3e5e
@ -11,10 +11,6 @@
|
||||
var a = debug('worker:a');
|
||||
var b = debug('worker:b');
|
||||
|
||||
// set all output to go via console.info
|
||||
// instead of console.log
|
||||
debug.log = console.info.bind(console);
|
||||
|
||||
setInterval(function(){
|
||||
a('doing some work');
|
||||
}, 1000);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user