add comments explaining the use of CLOG_PRINT

This commit is contained in:
Chris Simons 2020-06-05 16:23:45 -07:00
parent 69cfd14ee9
commit 7331519b51
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();