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

Only log in debug mode

This commit is contained in:
Tim-Smart
2010-09-18 12:49:48 +12:00
parent 8e7f1cc1e7
commit 59068b2b6d

View File

@@ -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");