You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Accept arbitrary arguments in the debug function
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
var index = require('../');
|
var index = require('../');
|
||||||
|
|
||||||
function debug (msg) {
|
function debug () {
|
||||||
if (index.debug_mode) {
|
if (index.debug_mode) {
|
||||||
console.error(msg);
|
console.error.apply(null, arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user