We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e625921 commit 7b421d7Copy full SHA for 7b421d7
providers/cron.go
@@ -60,13 +60,13 @@ func btwafRuleHitClear() {
60
if err != nil {
61
return
62
}
63
- if fileInfo.Size() > 5*1024*1024 {
64
- data, err := public.Tail(path, 1000)
+ if fileInfo.Size() > 10*1024*1024 {
+ data, err := public.Tail(path, 10000)
65
66
public.WriteFile(path, "")
67
68
public.WriteFile(path, data)
69
- logging.Error("命中记录文件大于5M,内容保留最后1000条")
+ logging.Error("命中记录文件大于10M,内容保留最后10000条")
70
71
72
@@ -245,12 +245,10 @@ func (cr *cronProvider) CheckHitLog() {
245
246
247
248
- data, err := public.Tail(path, 2000)
+ data, err := public.Tail(path, 20001)
249
250
-
251
252
253
254
255
256
0 commit comments