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 | |
| 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')
| -rw-r--r-- | zenhttp/httpasio.cpp | 12 | ||||
| -rw-r--r-- | zenhttp/httpsys.cpp | 12 |
2 files changed, 12 insertions, 12 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 { diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index 19dba126a..926e6b09f 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -598,10 +598,10 @@ HttpMessageResponseRequest::IssueRequest(std::error_code& ErrorCode) CancelThreadpoolIo(Iocp); - ZEN_ERROR("failed to send HTTP response (error: '{}'), request URL: '{}', request id: {}", - GetSystemErrorAsString(SendResult), - HttpReq->pRawUrl, - HttpReq->RequestId); + ZEN_WARN("failed to send HTTP response (error: '{}'), request URL: '{}', request id: {}", + GetSystemErrorAsString(SendResult), + HttpReq->pRawUrl, + HttpReq->RequestId); ErrorCode = MakeErrorCode(SendResult); } @@ -1134,7 +1134,7 @@ HttpSysTransaction::IssueNextRequest(HttpSysRequestHandler* NewCompletionHandler return true; } - ZEN_ERROR("IssueRequest() failed: '{}'", ErrorCode.message()); + ZEN_WARN("IssueRequest() failed: '{}'", ErrorCode.message()); } catch (std::exception& Ex) { @@ -1463,7 +1463,7 @@ InitialRequestHandler::IssueRequest(std::error_code& ErrorCode) ErrorCode = MakeErrorCode(HttpApiResult); - ZEN_ERROR("HttpReceiveHttpRequest failed, error: '{}'", ErrorCode.message()); + ZEN_WARN("HttpReceiveHttpRequest failed, error: '{}'", ErrorCode.message()); return; } |