aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/httpsys.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-09-29 10:58:21 +0200
committerGitHub <[email protected]>2023-09-29 10:58:21 +0200
commit0d8838feb52de35bca64a87706f1c2ea59925079 (patch)
treed48bc585e8dc88f89e060bdf5e57b72cd3541a19 /src/zenhttp/httpsys.cpp
parentmove badrequest count back to old scope for compatability with Zen Dashboard (diff)
downloadzen-0d8838feb52de35bca64a87706f1c2ea59925079.tar.xz
zen-0d8838feb52de35bca64a87706f1c2ea59925079.zip
added handle to http.sys error response logging (#432)
* added handle to http.sys error response logging
Diffstat (limited to 'src/zenhttp/httpsys.cpp')
-rw-r--r--src/zenhttp/httpsys.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zenhttp/httpsys.cpp b/src/zenhttp/httpsys.cpp
index 4d9a3e5b8..8c1f68ee8 100644
--- a/src/zenhttp/httpsys.cpp
+++ b/src/zenhttp/httpsys.cpp
@@ -621,12 +621,13 @@ HttpMessageResponseRequest::IssueRequest(std::error_code& ErrorCode)
if (PathEc)
{
- ResponseDetails << "bad_file(" << PathEc.message() << ")";
+ ResponseDetails << "bad_file(handle=" << reinterpret_cast<uint64_t>(FileHandle) << ",error=" << PathEc.message()
+ << ")";
}
else
{
const uint64_t FileSize = FileSizeFromHandle(FileHandle);
- ResponseDetails << Path.u8string() << "(" << FileSize << ")";
+ ResponseDetails << Path.u8string() << "(" << FileSize << ") handle=" << reinterpret_cast<uint64_t>(FileHandle);
}
}
break;