[日志审计]增加删除、清理和别的一些设置

This commit is contained in:
GoEdgeLab
2020-12-02 20:31:29 +08:00
parent f51ad97b9c
commit 635f1e8ea7
9 changed files with 320 additions and 3 deletions

View File

@@ -2,4 +2,16 @@ package models
import (
_ "github.com/go-sql-driver/mysql"
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestLogDAO_SumLogsSize(t *testing.T) {
dbs.NotifyReady()
size, err := SharedLogDAO.SumLogsSize()
if err != nil {
t.Fatal(err)
}
t.Log("size:", size)
}