Added some detailed profiling info for the http send queue
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "utils/Exception.hpp"
|
||||
#include "utils/ILogger.hpp"
|
||||
#include "utils/IProfiler.hpp"
|
||||
#include "utils/String.hpp"
|
||||
|
||||
#define LOG(sev, message) LMS_LOG(SCROBBLING, sev, "[Http SendQueue] - " << message)
|
||||
@@ -117,6 +118,8 @@ namespace Http
|
||||
bool
|
||||
SendQueue::sendRequest(const ClientRequest& request)
|
||||
{
|
||||
LMS_SCOPED_PROFILE_DETAILED("SendQueue", "SendRequest");
|
||||
|
||||
std::string url {_baseUrl + request.getParameters().relativeUrl};
|
||||
LOG(DEBUG, "Sending request to url '" << url << "'");
|
||||
|
||||
@@ -141,6 +144,8 @@ namespace Http
|
||||
void
|
||||
SendQueue::onClientDone(Wt::AsioWrapper::error_code ec, const Wt::Http::Message& msg)
|
||||
{
|
||||
LMS_SCOPED_PROFILE_DETAILED("SendQueue", "OnClientDone");
|
||||
|
||||
if (ec == boost::asio::error::operation_aborted)
|
||||
{
|
||||
LOG(DEBUG, "Client aborted");
|
||||
|
||||
Reference in New Issue
Block a user