可以在用户代码前后添加sethook 函数,像这样:. local function hook(event_type) ngx.say(event_type, ' ', debug.getinfo(2).name)
確定! 回上一頁