Skip to content

Commit

Permalink
Merge pull request #2 from plessbd/patch-3
Browse files Browse the repository at this point in the history
A few more log cleanups
  • Loading branch information
simons-public authored May 12, 2020
2 parents a9421a9 + 5636e9c commit 639415e
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 639415e

Please sign in to comment.