summaryrefslogtreecommitdiff
path: root/proxy_lua.c
diff options
context:
space:
mode:
authorSailesh Mukil <sailesh@apache.org>2022-04-12 09:37:49 -0700
committerdormando <dormando@rydia.net>2022-04-12 11:17:16 -0700
commit8d356ae1523f4fec72ade529cf74ef5ddc15e4aa (patch)
tree28d84643547bc3a39fea6dd5311389868a497865 /proxy_lua.c
parent43a5d6832bce062587c9c088797f0eec46c1ded8 (diff)
downloadmemcached-8d356ae1523f4fec72ade529cf74ef5ddc15e4aa.tar.gz
'proxyreqs' does not work unless 'proxyuser' also provided
Ideally we should be able to see the requst logs only after: "watch proxyreqs"
Diffstat (limited to 'proxy_lua.c')
-rw-r--r--proxy_lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proxy_lua.c b/proxy_lua.c
index 344484e..aa0ea4e 100644
--- a/proxy_lua.c
+++ b/proxy_lua.c
@@ -617,7 +617,7 @@ static int mcplib_log_req(lua_State *L) {
logger *l = t->l;
// Not using the LOGGER_LOG macro so we can avoid as much overhead as
// possible when logging is disabled.
- if (! (l->eflags & LOG_PROXYUSER)) {
+ if (! (l->eflags & LOG_PROXYREQS)) {
return 0;
}
int rtype = 0;
@@ -677,7 +677,7 @@ static int mcplib_log_reqsample(lua_State *L) {
logger *l = t->l;
// Not using the LOGGER_LOG macro so we can avoid as much overhead as
// possible when logging is disabled.
- if (! (l->eflags & LOG_PROXYUSER)) {
+ if (! (l->eflags & LOG_PROXYREQS)) {
return 0;
}
int rtype = 0;