Skip to content

Commit

Permalink
Accept arbitrary arguments in the debug function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Bridgewater committed Apr 23, 2016
1 parent 228573b commit 5e42302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/debug.js
Expand Up @@ -2,9 +2,9 @@

var index = require('../');

function debug (msg) {
function debug () {
if (index.debug_mode) {
console.error(msg);
console.error.apply(null, arguments);
}
}

Expand Down

0 comments on commit 5e42302

Please sign in to comment.