add comments explaining the use of CLOG_PRINT
This commit is contained in:
parent
69cfd14ee9
commit
7331519b51
|
@ -282,6 +282,8 @@ ClientApp::scheduleClientRestart(double retryTime)
|
||||||
void
|
void
|
||||||
ClientApp::handleClientConnected(const Event&, 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"));
|
LOG((CLOG_PRINT "connected to server"));
|
||||||
resetRestartTimeout();
|
resetRestartTimeout();
|
||||||
updateStatus();
|
updateStatus();
|
||||||
|
|
|
@ -555,6 +555,9 @@ ServerApp::startServer()
|
||||||
m_server->setListener(listener);
|
m_server->setListener(listener);
|
||||||
m_listener = listener;
|
m_listener = listener;
|
||||||
updateStatus();
|
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));
|
LOG((CLOG_PRINT "started server (%s), waiting for clients", family));
|
||||||
m_serverState = kStarted;
|
m_serverState = kStarted;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -353,6 +353,9 @@ 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()));
|
||||||
|
|
||||||
const char * serverstatus = m_watchdog->isProcessActive() ? "active" : "not active";
|
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));
|
LOG((CLOG_PRINT "server status: %s", serverstatus));
|
||||||
|
|
||||||
m_ipcLogOutputter->notifyBuffer();
|
m_ipcLogOutputter->notifyBuffer();
|
||||||
|
|
Loading…
Reference in New Issue