diff options
| author | Stefan Boberg <[email protected]> | 2023-06-16 18:30:53 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2023-06-16 18:30:53 +0200 |
| commit | f21820a378378030a0aaebd7963fb5dbaf5bd037 (patch) | |
| tree | 2c8c3552cbe52a4eb18ebec8a223f6c05c7f5dfd /src | |
| parent | Update README.md (diff) | |
| download | zen-f21820a378378030a0aaebd7963fb5dbaf5bd037.tar.xz zen-f21820a378378030a0aaebd7963fb5dbaf5bd037.zip | |
cleaned up http/asio logging
Diffstat (limited to 'src')
| -rw-r--r-- | src/zenhttp/httpasio.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/zenhttp/httpasio.cpp b/src/zenhttp/httpasio.cpp index 8ac36c7f3..20b62e225 100644 --- a/src/zenhttp/httpasio.cpp +++ b/src/zenhttp/httpasio.cpp @@ -410,17 +410,17 @@ HttpServerConnection::OnDataReceived(const asio::error_code& Ec, [[maybe_unused] { if (m_RequestState == RequestState::kDone || m_RequestState == RequestState::kInitialRead) { - ZEN_TRACE_VERBOSE("on data received ERROR (EXPECTED), connection '{}' reason '{}'", m_ConnectionId, Ec.message()); + ZEN_TRACE_VERBOSE("on data received ERROR (EXPECTED), connection: {}, reason: '{}'", m_ConnectionId, Ec.message()); return; } else { - ZEN_WARN("on data received ERROR, connection '{}' reason '{}'", m_ConnectionId, Ec.message()); + ZEN_WARN("on data received ERROR, connection: {}, reason '{}'", m_ConnectionId, Ec.message()); return TerminateConnection(); } } - ZEN_TRACE_VERBOSE("on data received, connection '{}', request '{}', thread '{}', bytes '{}'", + ZEN_TRACE_VERBOSE("on data received, connection: {}, request: {}, thread: {}, bytes: {}", m_ConnectionId, m_RequestCounter.load(std::memory_order_relaxed), zen::GetCurrentThreadId(), @@ -457,12 +457,12 @@ HttpServerConnection::OnResponseDataSent(const asio::error_code& Ec, [[maybe_unu { if (Ec) { - ZEN_WARN("on data sent ERROR, connection '{}' reason '{}'", m_ConnectionId, Ec.message()); + ZEN_WARN("on data sent ERROR, connection: {}, reason: '{}'", m_ConnectionId, Ec.message()); TerminateConnection(); } else { - ZEN_TRACE_VERBOSE("on data sent, connection '{}', request '{}', thread '{}', bytes '{}'", + ZEN_TRACE_VERBOSE("on data sent, connection: {}, request: {}, thread: {}, bytes: {}", m_ConnectionId, m_RequestCounter.load(std::memory_order_relaxed), zen::GetCurrentThreadId(), @@ -534,7 +534,7 @@ HttpServerConnection::HandleRequest() HttpAsioServerRequest Request(m_RequestData, *Service, m_RequestData.Body()); - ZEN_TRACE_VERBOSE("handle request, connection '{}' request '{}'", m_ConnectionId, m_RequestCounter.load(std::memory_order_relaxed)); + ZEN_TRACE_VERBOSE("handle request, connection: {}, request: {}'", m_ConnectionId, m_RequestCounter.load(std::memory_order_relaxed)); if (!HandlePackageOffers(*Service, Request, m_PackageHandler)) { @@ -544,7 +544,7 @@ HttpServerConnection::HandleRequest() } catch (std::exception& ex) { - ZEN_ERROR("Caught exception while handling request: '{}'", ex.what()); + ZEN_ERROR("Caught exception while handling request: {}", ex.what()); // Drop any partially formatted response Request.m_Response.reset(); |