This changes the log level for several statuses (started server, connected to server, server status:) from CLOG_NOTE or CLOG_INFO to CLOG_PRINT so they will be printed to stdout regardless of the log level. This allows the GUI to accurately report the status of the `barriers` or `barrierc` processes in src/gui/src/MainWindow.cpp#L379-L399.
This commit is contained in:
parent
2d2e92989c
commit
a9421a9cd3
|
@ -282,7 +282,7 @@ ClientApp::scheduleClientRestart(double retryTime)
|
|||
void
|
||||
ClientApp::handleClientConnected(const Event&, void*)
|
||||
{
|
||||
LOG((CLOG_NOTE "connected to server"));
|
||||
LOG((CLOG_PRINT "connected to server"));
|
||||
resetRestartTimeout();
|
||||
updateStatus();
|
||||
}
|
||||
|
|
|
@ -555,7 +555,7 @@ ServerApp::startServer()
|
|||
m_server->setListener(listener);
|
||||
m_listener = listener;
|
||||
updateStatus();
|
||||
LOG((CLOG_NOTE "started server (%s), waiting for clients", family));
|
||||
LOG((CLOG_PRINT "started server (%s), waiting for clients", family));
|
||||
m_serverState = kStarted;
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -353,7 +353,7 @@ DaemonApp::handleIpcMessage(const Event& e, void*)
|
|||
LOG((CLOG_DEBUG "ipc hello, type=%s", type.c_str()));
|
||||
|
||||
const char * serverstatus = m_watchdog->isProcessActive() ? "active" : "not active";
|
||||
LOG((CLOG_INFO "server status: %s", serverstatus));
|
||||
LOG((CLOG_PRINT "server status: %s", serverstatus));
|
||||
|
||||
m_ipcLogOutputter->notifyBuffer();
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue