diff options
| author | Stefan Boberg <[email protected]> | 2023-09-29 10:58:21 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-29 10:58:21 +0200 |
| commit | 0d8838feb52de35bca64a87706f1c2ea59925079 (patch) | |
| tree | d48bc585e8dc88f89e060bdf5e57b72cd3541a19 /src/zenhttp/httpsys.cpp | |
| parent | move badrequest count back to old scope for compatability with Zen Dashboard (diff) | |
| download | zen-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.cpp | 5 |
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; |