diff --git a/src/lib/platform/MSWindowsWatchdog.cpp b/src/lib/platform/MSWindowsWatchdog.cpp index 837db1de..4646aa2e 100644 --- a/src/lib/platform/MSWindowsWatchdog.cpp +++ b/src/lib/platform/MSWindowsWatchdog.cpp @@ -293,6 +293,7 @@ MSWindowsWatchdog::startProcess() ZeroMemory(&sa, sizeof(SECURITY_ATTRIBUTES)); HANDLE userToken = getUserToken(&sa); + m_elevateProcess = m_autoElevated; m_autoElevated = false; // patch by Jack Zhou and Henry Tung @@ -320,8 +321,10 @@ MSWindowsWatchdog::startProcess() m_processRunning = true; m_processFailures = 0; - LOG((CLOG_DEBUG "started process, session=%i, command=%s", - m_session.getActiveSessionId(), m_command.c_str())); + LOG((CLOG_DEBUG "started process, session=%i, elevated: %s, command=%s", + m_session.getActiveSessionId(), + m_elevateProcess ? "yes" : "no", + m_command.c_str())); } }