diff --git a/deploy/apisix/lua/auth.lua b/deploy/apisix/lua/auth.lua index 3b4865b..bea8aa3 100644 --- a/deploy/apisix/lua/auth.lua +++ b/deploy/apisix/lua/auth.lua @@ -60,6 +60,11 @@ function _M.access(conf, ctx) end local res, err = red:get(redis_key) + core.log.error("AUTH_DEBUG host=", redis_host, + " port=", redis_port, + " password=", redis_password, + " db=", redis_db, + " key=[", redis_key, "] err=[", tostring(err), "] res=[", tostring(res), "]") red:set_keepalive(10000, 100) if err or res == ngx.null then return core.response.exit(200, {code = 10003, message = "未登录或登录已过期"})