refactor: 移除冗余日志输出并优化日志处理
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-02-02 18:32:41 +08:00
parent acc9bcf6ff
commit cdb7cec4ad
17 changed files with 59 additions and 100 deletions

View File

@@ -2,6 +2,7 @@ package demo
import (
_ "blazing/modules/task/packed"
"fmt"
"blazing/cool"
@@ -18,7 +19,7 @@ func init() {
taskInfo = model.NewTaskInfo()
ctx = gctx.GetInitCtx()
)
cool.Logger.Debug(ctx, "module task init start ...")
fmt.Println("module task init start ...")
cool.FillInitData(ctx, "task", taskInfo, nil)
result, err := cool.DBM(taskInfo).Where("status", 1).All()
@@ -29,6 +30,6 @@ func init() {
id := v["id"].String()
cool.RunFunc(ctx, "TaskAddTask("+id+")")
}
cool.Logger.Debug(ctx, "module task init finished ...")
fmt.Println("module task init finished ...")
}