summaryrefslogtreecommitdiff
path: root/logger.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-04-06 16:59:18 -0700
committerdormando <dormando@rydia.net>2022-04-08 13:19:26 -0700
commit43a5d6832bce062587c9c088797f0eec46c1ded8 (patch)
treedc38f8278bb90a63a0d00e9fdb7da139565b97dd /logger.h
parent88e7960d21865d48f68b2463515dedde66cd9ae8 (diff)
downloadmemcached-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.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/logger.h b/logger.h
index 7d53276..1d261de 100644
--- a/logger.h
+++ b/logger.h
@@ -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 */