自动清理日志的时候也清理DNS访问日志

This commit is contained in:
刘祥超
2021-07-21 22:12:52 +08:00
parent 89ec81f6b1
commit b2d3d483e8

View File

@@ -105,7 +105,7 @@ func (this *ServerAccessLogCleaner) cleanDB(db *dbs.DB, endDay string) error {
if len(tableName) == 0 { if len(tableName) == 0 {
continue continue
} }
ok, err := regexp.MatchString(`^(?i)edgeHTTPAccessLogs_(\d{8})$`, tableName) ok, err := regexp.MatchString(`^(?i)(edgeHTTPAccessLogs|edgeNSAccessLogs)_(\d{8})$`, tableName)
if err != nil { if err != nil {
return err return err
} }