diff --git a/lib/debug.js b/lib/debug.js index 3f9d482bbc..0e6333f2ec 100644 --- a/lib/debug.js +++ b/lib/debug.js @@ -2,9 +2,9 @@ var index = require('../'); -function debug (msg) { +function debug () { if (index.debug_mode) { - console.error(msg); + console.error.apply(null, arguments); } }