Authored by chunhua.zhang

add

@@ -45,7 +45,7 @@ function do_degrade() @@ -45,7 +45,7 @@ function do_degrade()
45 45
46 if limit_ip_config and limit_ip_config.degrade_methods then 46 if limit_ip_config and limit_ip_config.degrade_methods then
47 if contains(limit_ip_config.degrade_methods,method) then 47 if contains(limit_ip_config.degrade_methods,method) then
48 - ngx.log(ngx.ERR, "method is degraded.", method) 48 + ngx.log(ngx.ERR, "[Degraded]: ", method)
49 ngx.header["Content-Type"]="application/json;charset=utf-8" 49 ngx.header["Content-Type"]="application/json;charset=utf-8"
50 local rsp_body = '{"code":9999991,"message":"limited"}' 50 local rsp_body = '{"code":9999991,"message":"limited"}'
51 ngx.say(rsp_body) 51 ngx.say(rsp_body)