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.
This commit is contained in:
Juha Sointusalo 2017-07-17 22:17:29 +03:00
parent 05172b81c9
commit c050a69888
1 changed files with 2 additions and 2 deletions

View File

@ -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
);
}
}