diff --git a/roles/openresty/files/java-nginx-config/nginx/conf/lua/limit_local_access.lua b/roles/openresty/files/java-nginx-config/nginx/conf/lua/limit_local_access.lua index c74f464..f93ff14 100644 --- a/roles/openresty/files/java-nginx-config/nginx/conf/lua/limit_local_access.lua +++ b/roles/openresty/files/java-nginx-config/nginx/conf/lua/limit_local_access.lua @@ -37,4 +37,8 @@ function check_local_access() end end -check_local_access() +---- running------ +local status, errMsg = pcall(check_local_access) +if not status then + ngx.log(ngx.ERR, "call method [check_local_access] failed.", errMsg) +end