Skip to content

Commit 592429f

Browse files
committed
debug: prefer an instance log() function over the global one
Fixes #119.
1 parent 00d5bdf commit 592429f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function debug(namespace) {
113113
if ('function' === typeof exports.formatArgs) {
114114
args = exports.formatArgs.apply(self, args);
115115
}
116-
var logFn = exports.log || enabled.log || console.log.bind(console);
116+
var logFn = enabled.log || exports.log || console.log.bind(console);
117117
logFn.apply(self, args);
118118
}
119119
enabled.enabled = true;

0 commit comments

Comments
 (0)