diff --git a/index.js b/index.js index 6a6159c9a5..fd4f7b2f16 100644 --- a/index.js +++ b/index.js @@ -513,7 +513,9 @@ RedisClient.prototype.send_command = function () { if (arg instanceof Buffer) { if (arg.length === 0) { - console.log("Using empty string for 0 length buffer"); + if (exports.debug_mode) { + console.log("Using empty string for 0 length buffer"); + } stream.write("$0\r\n\r\n"); } else { stream.write("$" + arg.length + "\r\n");