Skip to content

Commit 345996b

Browse files
author
Stephen Mathieson
committed
node.js: Use stderr rather than stdout for logging
Closes debug-js#120
1 parent abc10a5 commit 345996b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ function formatArgs() {
8787
}
8888

8989
/**
90-
* Invokes `console.log()` with the specified arguments.
90+
* Invokes `console.error()` with the specified arguments.
9191
*/
9292

9393
function log() {
94-
return console.log.apply(console, arguments);
94+
return console.error.apply(console, arguments);
9595
}
9696

9797
/**

0 commit comments

Comments
 (0)