You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error_log module just throw away the oldest ones silently if the user reads the buffered error log not fast enough or the buffer configured by lua_capture_error_log is too small, resulting in unnoticed logs lost.
There should be an api to read or return a flag indicating whether any logs were discarded.
For example:
localerrlog=require"ngx.errlog"localres, err, discarded=errlog.get_logs(30)
iferrthen...endifdiscardedthen-- change filter_level (for example, from ngx.INFO to ngx.NOTICE)errlog.set_filter_level(log_level)
end