antirez/redis — Issue #228: bug and feature suggestion about MONITOR
Author: xrfang
Created: 2011-12-02 10:02:01+00:00
State: open

The bug:

If command has syntax error, e.g. I just type HMSET and hit return, the client gives me "ERR wrong number of argument", this seems like a return from the server, but the command does NOT appear in MONITOR log, which is not good for debug, the primary purpose of MONITOR.

The feature suggestion:

MONITOR command shall also output replies from server, preferably with an argument to control this:

MONITOR [level]

where level controls verbosity of the output:

0 (or ommited), output commands received by server only (like current behavior)
1: output commands and a summary of reply, which means for bulk reply, just the reply header (e.g. bulk reply of xyz bytes, or bulk reply of abc lines)
2: output commands and FULL reply, just like what you see in the official client