Add elevate log info #5041

This commit is contained in:
Jerry (Xinyu Hou) 2015-12-02 15:34:31 -08:00 committed by Xinyu Hou
parent 20d9b80291
commit 70104190e4

View File

@ -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()));
}
}