From 631923abf8c06289139895dbae96b07a547b550e Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 7 Jul 2020 15:12:50 +0200 Subject: [PATCH] [libcalamares] Console-logging follows -D flag exactly - Don't always log LOGEXTRA and below. --- src/libcalamares/utils/Logger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcalamares/utils/Logger.cpp b/src/libcalamares/utils/Logger.cpp index 494b88659..f4ff6af3c 100644 --- a/src/libcalamares/utils/Logger.cpp +++ b/src/libcalamares/utils/Logger.cpp @@ -1,5 +1,5 @@ /* === This file is part of Calamares - === - * + * * SPDX-FileCopyrightText: 2010-2011 Christian Muehlhaeuser * SPDX-FileCopyrightText: 2014 Teo Mrnjavac * SPDX-FileCopyrightText: 2017 Adriaan de Groot @@ -95,7 +95,7 @@ log( const char* msg, unsigned int debugLevel ) logfile.flush(); } - if ( debugLevel <= LOGEXTRA || debugLevel < s_threshold ) + if ( logLevelEnabled(debugLevel) ) { QMutexLocker lock( &s_mutex );