Add elevate log info #5041
This commit is contained in:
parent
20d9b80291
commit
70104190e4
|
@ -293,6 +293,7 @@ MSWindowsWatchdog::startProcess()
|
||||||
|
|
||||||
ZeroMemory(&sa, sizeof(SECURITY_ATTRIBUTES));
|
ZeroMemory(&sa, sizeof(SECURITY_ATTRIBUTES));
|
||||||
HANDLE userToken = getUserToken(&sa);
|
HANDLE userToken = getUserToken(&sa);
|
||||||
|
m_elevateProcess = m_autoElevated;
|
||||||
m_autoElevated = false;
|
m_autoElevated = false;
|
||||||
|
|
||||||
// patch by Jack Zhou and Henry Tung
|
// patch by Jack Zhou and Henry Tung
|
||||||
|
@ -320,8 +321,10 @@ MSWindowsWatchdog::startProcess()
|
||||||
m_processRunning = true;
|
m_processRunning = true;
|
||||||
m_processFailures = 0;
|
m_processFailures = 0;
|
||||||
|
|
||||||
LOG((CLOG_DEBUG "started process, session=%i, command=%s",
|
LOG((CLOG_DEBUG "started process, session=%i, elevated: %s, command=%s",
|
||||||
m_session.getActiveSessionId(), m_command.c_str()));
|
m_session.getActiveSessionId(),
|
||||||
|
m_elevateProcess ? "yes" : "no",
|
||||||
|
m_command.c_str()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue