master
Evan Chen 2021-12-19 14:26:39 +08:00
parent e28e4a8ba3
commit df985a3000
1 changed files with 2 additions and 2 deletions

View File

@ -66,12 +66,12 @@ func (t *_task) Run() {
} }
}() }()
l.Info().Str("task_id", t.Task.ID). l.Info().Str("task_id", t.Task.ID).
Str("task name", t.name). Str("task_name", t.name).
Msg("task started.") Msg("task started.")
err := t.Task.Func(t.carry, t.args...) err := t.Task.Func(t.carry, t.args...)
if err != nil { if err != nil {
l.Error().Err(err).Str("task_id", t.Task.ID). l.Error().Err(err).Str("task_id", t.Task.ID).
Str("task name", t.name).Msg("task error") Str("task_name", t.name).Msg("task error")
} }
Reporter <- &Report{ Reporter <- &Report{
Entry: t.id, Entry: t.id,