From c050a69888fc3b2b02d9ea07702bb0e2735c0c9c Mon Sep 17 00:00:00 2001 From: Juha Sointusalo Date: Mon, 17 Jul 2017 22:17:29 +0300 Subject: [PATCH] client: add task name and tweak postponed message Makes it easier to see which task had problems when reading logs afterwards. Also include back off time in notice and drop fractional seconds. --- client/app_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/app_control.cpp b/client/app_control.cpp index 24009b423d..ce641f4c79 100644 --- a/client/app_control.cpp +++ b/client/app_control.cpp @@ -390,12 +390,12 @@ void ACTIVE_TASK::handle_temporary_exit( } else { if (is_notice) { msg_printf(result->project, MSG_USER_ALERT, - "Task postponed: %s", reason + "Task %s postponed for %.f seconds: %s", result->name, backoff, reason ); } else { if (log_flags.task) { msg_printf(result->project, MSG_INFO, - "task postponed %f sec: %s", backoff, reason + "Task %s postponed for %.f seconds: %s", result->name, backoff, reason ); } }