1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
This commit is contained in:
Ruben Bridgewater
2017-05-30 05:29:51 +02:00
parent ac26d0524d
commit 31fafd8b7c
6 changed files with 31 additions and 23 deletions

View File

@@ -42,7 +42,8 @@ function onResult (client, reply) {
// the average performance of all other commands in case of no monitor mode
if (client._monitoring === true) {
var replyStr
if (client.buffers && Buffer.isBuffer(reply)) {
// TODO: This could be further improved performance wise
if (client._parserReturningBuffers && Buffer.isBuffer(reply)) {
replyStr = reply.toString()
} else {
replyStr = reply