sshniro opened a new pull request #1520:
URL: https://github.com/apache/incubator-apisix/pull/1520
Fix #1494
This function should be called via the logger:
```lua
local stale_timer_running = false;
function _M.log(conf)
local entry = log_util.get_full_log(ngx)
if not stale_timer_running then
-- run the timer every 30 mins if any log is present
timer_at(30000, remove_stale_objects, buffers)
stale_timer_running = true
end
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]