diff options
| author | Dan Engelbrecht <[email protected]> | 2025-05-13 19:09:21 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-05-13 19:09:21 +0200 |
| commit | a4676ccaf5a98b0d4204f70f43e88640db6ce29d (patch) | |
| tree | ab6fdff59118f2a7c030c49ddf8a0a4ce195be04 /src/zenhttp/servers/httpsys.cpp | |
| parent | skip empty or single-space command line arguments (#393) (diff) | |
| download | zen-a4676ccaf5a98b0d4204f70f43e88640db6ce29d.tar.xz zen-a4676ccaf5a98b0d4204f70f43e88640db6ce29d.zip | |
extend log on failed httpsys response (#394)
* extend log on failed httpsys response
* fix formatting for "Desired port is in use, retrying"
* add warning log if port is remapped
Diffstat (limited to 'src/zenhttp/servers/httpsys.cpp')
| -rw-r--r-- | src/zenhttp/servers/httpsys.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/zenhttp/servers/httpsys.cpp b/src/zenhttp/servers/httpsys.cpp index a315ea2df..62dab02c4 100644 --- a/src/zenhttp/servers/httpsys.cpp +++ b/src/zenhttp/servers/httpsys.cpp @@ -535,7 +535,14 @@ HttpMessageResponseRequest::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfB if (IoResult != NO_ERROR) { - ZEN_WARN("response aborted due to error: {}", GetSystemErrorAsString(IoResult)); + ZEN_WARN("response '{}' ({}) aborted after transfering '{}', {} out of {} bytes, reason: {} ({})", + ReasonStringForHttpResultCode(m_ResponseCode), + m_ResponseCode, + ToString(m_ContentType), + NumberOfBytesTransferred, + m_TotalDataSize, + GetSystemErrorAsString(IoResult), + IoResult); // if one transmit failed there's really no need to go on return nullptr; |