Merge pull request #2 from plessbd/patch-3

A few more log cleanups
This commit is contained in:
Chris Simons 2020-05-12 13:07:45 -07:00 committed by GitHub
commit 639415ea44
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,8 +345,10 @@ void MainWindow::logError()
void MainWindow::appendLogInfo(const QString& text) void MainWindow::appendLogInfo(const QString& text)
{ {
if (appConfig().logLevel() >= 3) {
m_pLogWindow->appendInfo(text); m_pLogWindow->appendInfo(text);
} }
}
void MainWindow::appendLogDebug(const QString& text) { void MainWindow::appendLogDebug(const QString& text) {
if (appConfig().logLevel() >= 4) { if (appConfig().logLevel() >= 4) {
@ -536,10 +538,7 @@ void MainWindow::startBarrier()
qDebug() << args; qDebug() << args;
// show command if debug log level... appendLogDebug(QString("command: %1 %2").arg(app, args.join(" ")));
if (appConfig().logLevel() >= 4) {
appendLogInfo(QString("command: %1 %2").arg(app, args.join(" ")));
}
appendLogInfo("config file: " + configFilename()); appendLogInfo("config file: " + configFilename());
appendLogInfo("log level: " + appConfig().logLevelText()); appendLogInfo("log level: " + appConfig().logLevelText());