A few more log cleanups

Fix a few more log messages to be consistent
This commit is contained in:
Ben Plessinger 2020-05-12 15:49:19 -04:00 committed by GitHub
parent a9421a9cd3
commit 5636e9cb40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -345,7 +345,9 @@ void MainWindow::logError()
void MainWindow::appendLogInfo(const QString& text)
{
m_pLogWindow->appendInfo(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());