#6372 Make service messages more user friendly
This commit is contained in:
parent
0e0c701b61
commit
555090c7d2
|
@ -452,7 +452,7 @@ MSWindowsWatchdog::shutdownProcess(HANDLE handle, DWORD pid, int timeout)
|
||||||
GetExitCodeProcess(handle, &exitCode);
|
GetExitCodeProcess(handle, &exitCode);
|
||||||
if (exitCode != STILL_ACTIVE) {
|
if (exitCode != STILL_ACTIVE) {
|
||||||
// yay, we got a graceful shutdown. there should be no hook in use errors!
|
// yay, we got a graceful shutdown. there should be no hook in use errors!
|
||||||
LOG((CLOG_INFO "process %d was shutdown gracefully", pid));
|
LOG((CLOG_DEBUG "process %d was shutdown gracefully", pid));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -392,8 +392,8 @@ DaemonApp::handleIpcMessage(const Event& e, void*)
|
||||||
LOG((CLOG_DEBUG "ipc hello, type=%s", type.c_str()));
|
LOG((CLOG_DEBUG "ipc hello, type=%s", type.c_str()));
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if SYSAPI_WIN32
|
||||||
String watchdogStatus = m_watchdog->isProcessActive() ? "ok" : "error";
|
String watchdogStatus = m_watchdog->isProcessActive() ? "active" : "idle";
|
||||||
LOG((CLOG_INFO "watchdog status: %s", watchdogStatus.c_str()));
|
LOG((CLOG_INFO "service status: %s", watchdogStatus.c_str()));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_ipcLogOutputter->notifyBuffer();
|
m_ipcLogOutputter->notifyBuffer();
|
||||||
|
|
Loading…
Reference in New Issue