diff --git a/index.js b/index.js index c4a2c22327..60a9bfdb51 100644 --- a/index.js +++ b/index.js @@ -522,7 +522,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");