From 3d3e67dd83f917575abfab15f1606d1fadad6e5b Mon Sep 17 00:00:00 2001 From: dormando Date: Thu, 10 Feb 2022 18:21:34 -0800 Subject: 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() --- proto_text.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'proto_text.c') 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; -- cgit v1.2.1