Merge pull request #739 from simons-public/gui-status-log-comments

GUI status log comments
This commit is contained in:
Povilas Kanapickas 2020-06-06 21:00:01 +03:00 committed by GitHub
commit c336cfde8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

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

View File

@ -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;

View File

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