From 5e42302636432d0d997b72cda3a3f45609c5ecab Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Wed, 13 Apr 2016 03:50:01 +0200 Subject: [PATCH] Accept arbitrary arguments in the debug function --- lib/debug.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }