aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpsys.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-15 13:18:34 +0200
committerStefan Boberg <[email protected]>2021-09-15 13:18:34 +0200
commitab95978c10258cab130ef7e6dc3f7cb7a1bf337d (patch)
treea6e4ca55890f5b728f69ccf8878af98ba2e31bc9 /zenhttp/httpsys.cpp
parentAdded #ifdef condition around Windows-specific exception handling (diff)
parentCross-platform zen::GetLastError() (diff)
downloadzen-ab95978c10258cab130ef7e6dc3f7cb7a1bf337d.tar.xz
zen-ab95978c10258cab130ef7e6dc3f7cb7a1bf337d.zip
Merged from main
Diffstat (limited to 'zenhttp/httpsys.cpp')
-rw-r--r--zenhttp/httpsys.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp
index 9ee004c5c..e8da9cb90 100644
--- a/zenhttp/httpsys.cpp
+++ b/zenhttp/httpsys.cpp
@@ -418,7 +418,7 @@ HttpMessageResponseRequest::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfB
if (IoResult)
{
- spdlog::warn("response aborted due to error: '{}'", GetWindowsErrorAsString(IoResult));
+ ZEN_WARN("response aborted due to error: '{}'", GetWindowsErrorAsString(IoResult));
// if one transmit failed there's really no need to go on
return nullptr;
@@ -554,7 +554,7 @@ HttpMessageResponseRequest::IssueRequest(std::error_code& ErrorCode)
CancelThreadpoolIo(Iocp);
- spdlog::error("failed to send HTTP response (error: '{}'), request URL: {}"sv, SendResult, HttpReq->pRawUrl);
+ ZEN_ERROR("failed to send HTTP response (error: '{}'), request URL: {}"sv, SendResult, HttpReq->pRawUrl);
ErrorCode = MakeWin32ErrorCode(SendResult);
}
@@ -605,7 +605,7 @@ HttpSysServer::Initialize(const wchar_t* UrlPath)
if (Result != NO_ERROR)
{
- spdlog::error("Failed to create server session for '{}': {x}"sv, WideToUtf8(UrlPath), Result);
+ ZEN_ERROR("Failed to create server session for '{}': {x}"sv, WideToUtf8(UrlPath), Result);
return;
}
@@ -614,7 +614,7 @@ HttpSysServer::Initialize(const wchar_t* UrlPath)
if (Result != NO_ERROR)
{
- spdlog::error("Failed to create URL group for '{}': {x}"sv, WideToUtf8(UrlPath), Result);
+ ZEN_ERROR("Failed to create URL group for '{}': {x}"sv, WideToUtf8(UrlPath), Result);
return;
}
@@ -625,7 +625,7 @@ HttpSysServer::Initialize(const wchar_t* UrlPath)
if (Result != NO_ERROR)
{
- spdlog::error("Failed to add base URL to URL group for '{}': {x}"sv, WideToUtf8(UrlPath), Result);
+ ZEN_ERROR("Failed to add base URL to URL group for '{}': {x}"sv, WideToUtf8(UrlPath), Result);
return;
}
@@ -640,7 +640,7 @@ HttpSysServer::Initialize(const wchar_t* UrlPath)
if (Result != NO_ERROR)
{
- spdlog::error("Failed to create request queue for '{}': {x}"sv, WideToUtf8(UrlPath), Result);
+ ZEN_ERROR("Failed to create request queue for '{}': {x}"sv, WideToUtf8(UrlPath), Result);
return;
}
@@ -652,7 +652,7 @@ HttpSysServer::Initialize(const wchar_t* UrlPath)
if (Result != NO_ERROR)
{
- spdlog::error("Failed to set server binding property for '{}': {x}"sv, WideToUtf8(UrlPath), Result);
+ ZEN_ERROR("Failed to set server binding property for '{}': {x}"sv, WideToUtf8(UrlPath), Result);
return;
}
@@ -664,7 +664,7 @@ HttpSysServer::Initialize(const wchar_t* UrlPath)
if (ErrorCode)
{
- spdlog::error("Failed to create IOCP for '{}': {}"sv, WideToUtf8(UrlPath), ErrorCode.message());
+ ZEN_ERROR("Failed to create IOCP for '{}': {}"sv, WideToUtf8(UrlPath), ErrorCode.message());
}
else
{
@@ -803,7 +803,7 @@ HttpSysServer::RegisterService(const char* UrlPath, HttpService& Service)
if (Result != NO_ERROR)
{
- spdlog::error("HttpAddUrlToUrlGroup failed with result {}"sv, Result);
+ ZEN_ERROR("HttpAddUrlToUrlGroup failed with result {}"sv, Result);
return;
}
@@ -829,7 +829,7 @@ HttpSysServer::UnregisterService(const char* UrlPath, HttpService& Service)
if (Result != NO_ERROR)
{
- spdlog::error("HttpRemoveUrlFromUrlGroup failed with result {}"sv, Result);
+ ZEN_ERROR("HttpRemoveUrlFromUrlGroup failed with result {}"sv, Result);
}
}
@@ -917,7 +917,7 @@ HttpSysTransaction::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfBytesTran
if (ErrorCode)
{
- spdlog::error("IssueRequest() failed {}"sv, ErrorCode.message());
+ ZEN_ERROR("IssueRequest() failed {}"sv, ErrorCode.message());
}
else
{
@@ -926,7 +926,7 @@ HttpSysTransaction::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfBytesTran
}
catch (std::exception& Ex)
{
- spdlog::error("exception caught from IssueRequest(): {}"sv, Ex.what());
+ ZEN_ERROR("exception caught from IssueRequest(): {}"sv, Ex.what());
// something went wrong, no request is pending
}
@@ -1233,7 +1233,7 @@ InitialRequestHandler::IssueRequest(std::error_code& ErrorCode)
ErrorCode = MakeWin32ErrorCode(HttpApiResult);
- spdlog::error("HttpReceiveHttpRequest failed, error {}", ErrorCode.message());
+ ZEN_ERROR("HttpReceiveHttpRequest failed, error {}", ErrorCode.message());
return;
}
@@ -1273,45 +1273,45 @@ InitialRequestHandler::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfBytesT
{
const HTTP_REQUEST_TIMING_INFO* TimingInfo = reinterpret_cast<HTTP_REQUEST_TIMING_INFO*>(ReqInfo.pInfo);
- spdlog::info("");
+ ZEN_INFO("");
}
break;
case HttpRequestInfoTypeAuth:
- spdlog::info("");
+ ZEN_INFO("");
break;
case HttpRequestInfoTypeChannelBind:
- spdlog::info("");
+ ZEN_INFO("");
break;
case HttpRequestInfoTypeSslProtocol:
- spdlog::info("");
+ ZEN_INFO("");
break;
case HttpRequestInfoTypeSslTokenBindingDraft:
- spdlog::info("");
+ ZEN_INFO("");
break;
case HttpRequestInfoTypeSslTokenBinding:
- spdlog::info("");
+ ZEN_INFO("");
break;
case HttpRequestInfoTypeTcpInfoV0:
{
const TCP_INFO_v0* TcpInfo = reinterpret_cast<const TCP_INFO_v0*>(ReqInfo.pInfo);
- spdlog::info("");
+ ZEN_INFO("");
}
break;
case HttpRequestInfoTypeRequestSizing:
{
const HTTP_REQUEST_SIZING_INFO* SizingInfo = reinterpret_cast<const HTTP_REQUEST_SIZING_INFO*>(ReqInfo.pInfo);
- spdlog::info("");
+ ZEN_INFO("");
}
break;
case HttpRequestInfoTypeQuicStats:
- spdlog::info("");
+ ZEN_INFO("");
break;
case HttpRequestInfoTypeTcpInfoV1:
{
const TCP_INFO_v1* TcpInfo = reinterpret_cast<const TCP_INFO_v1*>(ReqInfo.pInfo);
- spdlog::info("");
+ ZEN_INFO("");
}
break;
}