日志加颜色
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user