Showing
1 changed file
with
2 additions
and
2 deletions
@@ -46,8 +46,8 @@ function do_degrade() | @@ -46,8 +46,8 @@ function do_degrade() | ||
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_config.degrades) do | 48 | for k, v in pairs(limit_ip_config.degrades) do |
49 | - print(k) | ||
50 | - print(v) | 49 | + ngx.log(ngx.ERR, "k:",k) |
50 | + ngx.log(ngx.ERR, "v:",v) | ||
51 | end | 51 | end |
52 | local err_code = limit_ip_config.degrades[method] | 52 | local err_code = limit_ip_config.degrades[method] |
53 | local err_msg = default_err_msg | 53 | local err_msg = default_err_msg |
-
Please register or login to post a comment