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 );