Authored by chunhua.zhang

debug

@@ -45,6 +45,10 @@ function do_degrade() @@ -45,6 +45,10 @@ function do_degrade()
45 45
46 if limit_ip_config and limit_ip_config.degrades and limit_ip_config.degrades[method] then 46 if limit_ip_config and limit_ip_config.degrades and limit_ip_config.degrades[method] then
47 ngx.log(ngx.ERR, "[Degraded]: ", method) 47 ngx.log(ngx.ERR, "[Degraded]: ", method)
  48 + for k, v in pairs(limit_ip_access.degrades) do
  49 + print(k)
  50 + print(v)
  51 + end
48 local err_code = limit_ip_config.degrades[method] 52 local err_code = limit_ip_config.degrades[method]
49 local err_msg = default_err_msg 53 local err_msg = default_err_msg
50 ngx.header["Content-Type"]="application/json;charset=utf-8" 54 ngx.header["Content-Type"]="application/json;charset=utf-8"