mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 18:05:42 +03:00
tiny: print task name and error message for the SaveState error in task_runner
This commit is contained in:
@@ -212,7 +212,7 @@ func (r *TaskRunner) DestroyState() error {
|
||||
func (r *TaskRunner) setState(state string, event *structs.TaskEvent) {
|
||||
// Persist our state to disk.
|
||||
if err := r.SaveState(); err != nil {
|
||||
r.logger.Printf("[ERR] client: failed to save state of Task Runner: %v", r.task.Name)
|
||||
r.logger.Printf("[ERR] client: failed to save state of Task Runner for task %q: %v", r.task.Name, err)
|
||||
}
|
||||
|
||||
// Indicate the task has been updated.
|
||||
|
||||
Reference in New Issue
Block a user