From f0c60f5ca9b38d5622a61f48d37046025b3260dd Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Mon, 24 Feb 2025 16:57:15 +0000 Subject: [PATCH] chore: Improve logging for pipe readers in Windows watchdog --- src/lib/platform/MSWindowsWatchdog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/platform/MSWindowsWatchdog.cpp b/src/lib/platform/MSWindowsWatchdog.cpp index 6277e8c10..61c255ec0 100644 --- a/src/lib/platform/MSWindowsWatchdog.cpp +++ b/src/lib/platform/MSWindowsWatchdog.cpp @@ -188,7 +188,7 @@ void MSWindowsWatchdog::mainLoop(void *) saAttr.lpSecurityDescriptor = NULL; if (!CreatePipe(&m_outputReadPipe, &m_outputWritePipe, &saAttr, 0)) { - LOG((CLOG_ERR "could not create output pipe")); + LOG_ERR("could not create output pipe"); throw XArch(new XArchEvalWindows()); } @@ -196,6 +196,7 @@ void MSWindowsWatchdog::mainLoop(void *) // in order to speed up the shutdown process when the Windows service needs to stop. DWORD mode = PIPE_NOWAIT; if (!SetNamedPipeHandleState(m_outputReadPipe, &mode, nullptr, nullptr)) { + LOG_ERR("could not set pipe to non-blocking mode"); throw XArch(new XArchEvalWindows()); }