实现自动清理服务访问日志

This commit is contained in:
GoEdgeLab
2021-01-19 12:05:35 +08:00
parent 8ea17ef75f
commit fa9dcc2f04
10 changed files with 188 additions and 18 deletions

View File

@@ -0,0 +1,17 @@
package tasks
import (
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestServerAccessLogCleaner_Loop(t *testing.T) {
dbs.NotifyReady()
task := NewServerAccessLogCleaner()
err := task.Loop()
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}