X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/07ac2daaaa6c844cc3171c8f01ad5ad7e786e2ea..3e0a975e07089609036daf70c319eea0599ce944:/src/networking.c diff --git a/src/networking.c b/src/networking.c index c16e182f..f0da4010 100644 --- a/src/networking.c +++ b/src/networking.c @@ -695,6 +695,12 @@ int processInlineBuffer(redisClient *c) { /* Helper function. Trims query buffer to make the function that processes * multi bulk requests idempotent. */ static void setProtocolError(redisClient *c, int pos) { + if (server.verbosity >= REDIS_VERBOSE) { + sds client = getClientInfoString(c); + redisLog(REDIS_VERBOSE, + "Protocol error from client: %s", client); + sdsfree(client); + } c->flags |= REDIS_CLOSE_AFTER_REPLY; c->querybuf = sdsrange(c->querybuf,pos,-1); }