日志加颜色

This commit is contained in:
2025-09-22 23:15:10 +08:00
parent fd2ac68a03
commit f5e862ee86
2 changed files with 75 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ type DelayTask struct {
func (d *DelayTask) Execute() error {
d.logger.Infof("任务 %v: 开始延迟 %v...", d.executionTask.TaskID, d.duration)
time.Sleep(d.duration)
d.logger.Infof("任务 %v: 延迟结束。\n", d.executionTask.TaskID)
d.logger.Infof("任务 %v: 延迟结束。", d.executionTask.TaskID)
return nil
}