diff options
author | dormando <dormando@rydia.net> | 2022-04-06 16:59:18 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-04-08 13:19:26 -0700 |
commit | 43a5d6832bce062587c9c088797f0eec46c1ded8 (patch) | |
tree | dc38f8278bb90a63a0d00e9fdb7da139565b97dd /logger.h | |
parent | 88e7960d21865d48f68b2463515dedde66cd9ae8 (diff) | |
download | memcached-43a5d6832bce062587c9c088797f0eec46c1ded8.tar.gz |
proxy: replace proxycmds stream with proxyreqs
delete the magic logging and require mcp.log_req* be used if you want
those types of entries to appear. keeps a separate data stream from
"proxyuser" just in case that's useful.
proxycmds wasn't able to get enough context to autogenerate useful log
lines, so I'd rather not have it in there at all.
Diffstat (limited to 'logger.h')
-rw-r--r-- | logger.h | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -115,13 +115,6 @@ struct logentry_conn_event { struct sockaddr_in6 addr; }; #ifdef PROXY -struct logentry_proxy_raw { - unsigned short type; - unsigned short code; - long elapsed; // elapsed time in usec - char cmd[8]; -}; - struct logentry_proxy_req { unsigned short type; unsigned short code; @@ -159,7 +152,7 @@ struct _logentry { #define LOG_EVICTIONS (1<<6) /* details of evicted items */ #define LOG_STRICT (1<<7) /* block worker instead of drop */ #define LOG_RAWCMDS (1<<9) /* raw ascii commands */ -#define LOG_PROXYCMDS (1<<10) /* command logs from proxy */ +#define LOG_PROXYREQS (1<<10) /* command logs from proxy */ #define LOG_PROXYEVENTS (1<<11) /* error log stream from proxy */ #define LOG_PROXYUSER (1<<12) /* user generated logs from proxy */ |