Skip to content

Commit

Permalink
Extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Oct 19, 2024
1 parent a686414 commit 55f676c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ class beast_http_session : public detail::abstract_conn,
ei.code = static_cast<int64_t>(http::status::service_unavailable);
ei.name = "Busy";
ei.what = std::move(what);
elog("sending service_unavailable");
elog("sending service_unavailable: ${ep}, bytes_in_flight: ${b}, requests_in_flight: ${r}",
("ep", remote_endpoint_)("b", plugin_state_->bytes_in_flight.load())("r", plugin_state_->requests_in_flight.load()));
error_results results{static_cast<uint16_t>(http::status::service_unavailable), "Busy", ei};
send_response(fc::json::to_string(results, fc::time_point::maximum()),
static_cast<unsigned int>(http::status::service_unavailable) );
Expand Down

0 comments on commit 55f676c

Please sign in to comment.