Authored by chunhua.zhang

pcall

... ... @@ -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
... ...