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

Merge remote branch 'Tim_Smart/remove-log'

This commit is contained in:
Matt Ranney
2010-09-18 12:04:10 -07:00

View File

@@ -522,7 +522,9 @@ RedisClient.prototype.send_command = function () {
if (arg instanceof Buffer) { if (arg instanceof Buffer) {
if (arg.length === 0) { 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"); stream.write("$0\r\n\r\n");
} else { } else {
stream.write("$" + arg.length + "\r\n"); stream.write("$" + arg.length + "\r\n");