diff options
author | dormando <dormando@rydia.net> | 2022-02-10 18:21:34 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-02-11 16:48:33 -0800 |
commit | 3d3e67dd83f917575abfab15f1606d1fadad6e5b (patch) | |
tree | 031843ec03cfbdcf5faed7989a2f41a2a2649ff1 /proto_text.c | |
parent | 28e5f566b4feec534855e369eb60ecdb6911b44a (diff) | |
download | memcached-3d3e67dd83f917575abfab15f1606d1fadad6e5b.tar.gz |
proxy: logging improvements + lua mcp.log()
adds watch commands for:
proxycmds - internal raw timing log (tbd?)
proxyevents - config updates, internal errors, etc
proxyuser - logs generated by mcp.log()
Diffstat (limited to 'proto_text.c')
-rw-r--r-- | proto_text.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/proto_text.c b/proto_text.c index 205344c..1024090 100644 --- a/proto_text.c +++ b/proto_text.c @@ -2291,6 +2291,12 @@ static void process_watch_command(conn *c, token_t *tokens, const size_t ntokens f |= LOG_SYSEVENTS; } else if ((strcmp(tokens[x].value, "connevents") == 0)) { f |= LOG_CONNEVENTS; + } else if ((strcmp(tokens[x].value, "proxycmds") == 0)) { + f |= LOG_PROXYCMDS; + } else if ((strcmp(tokens[x].value, "proxyevents") == 0)) { + f |= LOG_PROXYEVENTS; + } else if ((strcmp(tokens[x].value, "proxyuser") == 0)) { + f |= LOG_PROXYUSER; } else { out_string(c, "ERROR"); return; |