1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

Accept arbitrary arguments in the debug function

This commit is contained in:
Ruben Bridgewater
2016-04-13 03:50:01 +02:00
parent 228573b8d7
commit 5e42302636

View File

@@ -2,9 +2,9 @@
var index = require('../');
function debug (msg) {
function debug () {
if (index.debug_mode) {
console.error(msg);
console.error.apply(null, arguments);
}
}