diff options
| author | Dan Engelbrecht <[email protected]> | 2022-09-08 12:31:11 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-08 03:31:11 -0700 |
| commit | 15e034da3f567c9053b0464e8a002d08e6d18b78 (patch) | |
| tree | 7782fd2f4e3e86c325d405c5969c7b5f1a78d059 /zenhttp/httpasio.cpp | |
| parent | Remove legacy code (#161) (diff) | |
| download | zen-15e034da3f567c9053b0464e8a002d08e6d18b78.tar.xz zen-15e034da3f567c9053b0464e8a002d08e6d18b78.zip | |
Adjust errors vs warnings messages (#160)
* demote a number of ZEN_ERROR to ZEN_WARN
* changelog
Diffstat (limited to 'zenhttp/httpasio.cpp')
| -rw-r--r-- | zenhttp/httpasio.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zenhttp/httpasio.cpp b/zenhttp/httpasio.cpp index e4b85710d..39a363711 100644 --- a/zenhttp/httpasio.cpp +++ b/zenhttp/httpasio.cpp @@ -403,7 +403,7 @@ HttpServerConnection::OnDataReceived(const asio::error_code& Ec, [[maybe_unused] } else { - ZEN_ERROR("on data received ERROR, connection '{}' reason '{}'", m_ConnectionId, Ec.message()); + ZEN_WARN("on data received ERROR, connection '{}' reason '{}'", m_ConnectionId, Ec.message()); return OnError(); } } @@ -441,7 +441,7 @@ HttpServerConnection::OnResponseDataSent(const asio::error_code& Ec, [[maybe_unu { if (Ec) { - ZEN_ERROR("on data sent ERROR, connection '{}' reason '{}'", m_ConnectionId, Ec.message()); + ZEN_WARN("on data sent ERROR, connection '{}' reason '{}'", m_ConnectionId, Ec.message()); OnError(); } else @@ -987,10 +987,10 @@ struct HttpAcceptor m_Acceptor.async_accept(SocketRef, [this, Socket = std::move(SocketPtr)](const asio::error_code& Ec) mutable { if (Ec) { - ZEN_ERROR("asio async_accept, connection failed to '{}:{}' reason '{}'", - m_Acceptor.local_endpoint().address().to_string(), - m_Acceptor.local_endpoint().port(), - Ec.message()); + ZEN_WARN("asio async_accept, connection failed to '{}:{}' reason '{}'", + m_Acceptor.local_endpoint().address().to_string(), + m_Acceptor.local_endpoint().port(), + Ec.message()); } else { |