Lua debugger: redis.debug() implemented.

This commit is contained in:
antirez
2015-11-12 08:33:52 +01:00
parent 23a4d70e56
commit 7492237c3c
2 changed files with 44 additions and 15 deletions

View File

@ -523,6 +523,7 @@ sds sdscatcolor(sds o, char *s, size_t len, char *color) {
sds sdsCatColorizedLdbReply(sds o, char *s, size_t len) {
char *color = "white";
if (strstr(s,"<debug>")) color = "bold";
if (strstr(s,"<redis>")) color = "green";
if (strstr(s,"<reply>")) color = "cyan";
if (strstr(s,"<error>")) color = "red";