diff --git a/web/job/check_client_ip_job.go b/web/job/check_client_ip_job.go index 16aa24e3..344160e1 100644 --- a/web/job/check_client_ip_job.go +++ b/web/job/check_client_ip_job.go @@ -57,7 +57,7 @@ func (j *CheckClientIpJob) Run() { } } - if clearAccessLog || time.Now().Unix() - j.lastClear > 3600 { + if clearAccessLog || accessLogPath == "./access.log" && time.Now().Unix() - j.lastClear > 3600 { j.clearAccessLog() } }