From 0d8838feb52de35bca64a87706f1c2ea59925079 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Fri, 29 Sep 2023 10:58:21 +0200 Subject: added handle to http.sys error response logging (#432) * added handle to http.sys error response logging --- src/zenhttp/httpsys.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/zenhttp/httpsys.cpp') 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(FileHandle) << ",error=" << PathEc.message() + << ")"; } else { const uint64_t FileSize = FileSizeFromHandle(FileHandle); - ResponseDetails << Path.u8string() << "(" << FileSize << ")"; + ResponseDetails << Path.u8string() << "(" << FileSize << ") handle=" << reinterpret_cast(FileHandle); } } break; -- cgit v1.2.3