From 32ce8939c7fc269107b69dfc0faaa37505d6b040 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Sun, 7 Aug 2016 13:33:58 +0900 Subject: [PATCH] tiny: print task name and error message for the SaveState error in task_runner --- client/task_runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/task_runner.go b/client/task_runner.go index 67edbbc8a..d8125066a 100644 --- a/client/task_runner.go +++ b/client/task_runner.go @@ -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.