Merge pull request #739 from simons-public/gui-status-log-comments
GUI status log comments
This commit is contained in:
commit
c336cfde8f
|
@ -282,6 +282,8 @@ ClientApp::scheduleClientRestart(double retryTime)
|
|||
void
|
||||
ClientApp::handleClientConnected(const Event&, void*)
|
||||
{
|
||||
// using CLOG_PRINT here allows the GUI to see that the client is connected
|
||||
// regardless of which log level is set
|
||||
LOG((CLOG_PRINT "connected to server"));
|
||||
resetRestartTimeout();
|
||||
updateStatus();
|
||||
|
|
|
@ -555,6 +555,9 @@ ServerApp::startServer()
|
|||
m_server->setListener(listener);
|
||||
m_listener = listener;
|
||||
updateStatus();
|
||||
|
||||
// using CLOG_PRINT here allows the GUI to see that the server is started
|
||||
// regardless of which log level is set
|
||||
LOG((CLOG_PRINT "started server (%s), waiting for clients", family));
|
||||
m_serverState = kStarted;
|
||||
return true;
|
||||
|
|
|
@ -353,6 +353,9 @@ 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";
|
||||
|
||||
// using CLOG_PRINT here allows the GUI to see that the server status
|
||||
// regardless of which log level is set
|
||||
LOG((CLOG_PRINT "server status: %s", serverstatus));
|
||||
|
||||
m_ipcLogOutputter->notifyBuffer();
|
||||
|
|
Loading…
Reference in New Issue