use 60 seconds interval but not 61 seconds
diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c index 5532831..e4b861b 100644 --- a/src/http/modules/ngx_http_log_module.c +++ b/src/http/modules/ngx_http_log_module.c
@@ -302,7 +302,7 @@ log->disk_full_time = now; } - if (now - log->error_log_time > 60) { + if (now - log->error_log_time > 59) { ngx_log_error(NGX_LOG_ALERT, r->connection->log, err, ngx_write_fd_n " to \"%V\" failed", &log->file->name); @@ -313,7 +313,7 @@ return; } - if (now - log->error_log_time > 60) { + if (now - log->error_log_time > 59) { ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, ngx_write_fd_n " to \"%V\" was incomplete: %z of %uz", &log->file->name, n, len);