You've already forked node-redis
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:
4
index.js
4
index.js
@@ -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");
|
||||||
|
Reference in New Issue
Block a user