Skip to content

Commit

Permalink
A few more log cleanups
Browse files Browse the repository at this point in the history
Fix a few more log messages to be consistent
  • Loading branch information
plessbd authored May 12, 2020
1 parent a9421a9 commit 5636e9c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/gui/src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 5636e9c

Please sign in to comment.