refactor: 移除冗余日志输出并优化日志处理
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -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 ...")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user