Merge pull request #664 from simons-public/fix-gui-status
Change log level on several status messages (Fixes #652, Fixes #516)
This commit is contained in:
commit
dc2869f48b
|
@ -345,7 +345,9 @@ void MainWindow::logError()
|
|||
|
||||
void MainWindow::appendLogInfo(const QString& text)
|
||||
{
|
||||
if (appConfig().logLevel() >= 3) {
|
||||
m_pLogWindow->appendInfo(text);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::appendLogDebug(const QString& text) {
|
||||
|
@ -536,10 +538,7 @@ void MainWindow::startBarrier()
|
|||
|
||||
qDebug() << args;
|
||||
|
||||
// show command if debug log level...
|
||||
if (appConfig().logLevel() >= 4) {
|
||||
appendLogInfo(QString("command: %1 %2").arg(app, args.join(" ")));
|
||||
}
|
||||
appendLogDebug(QString("command: %1 %2").arg(app, args.join(" ")));
|
||||
|
||||
appendLogInfo("config file: " + configFilename());
|
||||
appendLogInfo("log level: " + appConfig().logLevelText());
|
||||
|
|
|
@ -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