mirror of
https://github.com/fluencelabs/redis
synced 2025-06-15 02:01:21 +00:00
Lua debugger: maxlen command implemented.
Let the user control the replies truncation.
This commit is contained in:
@ -521,6 +521,7 @@ sds sdsCatColorizedLdbReply(sds o, char *s, size_t len) {
|
||||
if (strstr(s,"<redis>")) color = "green";
|
||||
if (strstr(s,"<reply>")) color = "cyan";
|
||||
if (strstr(s,"<error>")) color = "red";
|
||||
if (strstr(s,"<hint>")) color = "bold";
|
||||
if (strstr(s,"<value>") || strstr(s,"<retval>")) color = "magenta";
|
||||
if (len > 4 && isdigit(s[3])) {
|
||||
if (s[1] == '>') color = "yellow"; /* Current line. */
|
||||
|
Reference in New Issue
Block a user