Skip to content

Commit

Permalink
Log headers on job reject
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloop committed Nov 9, 2016
1 parent 80072f8 commit 54f3394
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/handlers/broker_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ void broker_handler::process_client_eval(
workers_->deprioritize_worker(worker);
} else {
respond(message_container(broker_connect::KEY_CLIENTS, identity, {"reject"}));
logger_->error() << "Request '" << job_id << "' rejected. No worker available.";
logger_->error() << "Request '" << job_id << "' rejected. No worker available for headers:";
for (auto &header : headers) {
logger_->error() << " - " << header.first << ": " << header.second;
}
}
}

Expand Down

0 comments on commit 54f3394

Please sign in to comment.