[libcalamares] Console-logging follows -D flag exactly
- Don't always log LOGEXTRA and below.
This commit is contained in:
parent
67aa34c4a4
commit
631923abf8
@ -1,5 +1,5 @@
|
|||||||
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
||||||
*
|
*
|
||||||
* SPDX-FileCopyrightText: 2010-2011 Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
* SPDX-FileCopyrightText: 2010-2011 Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||||
* SPDX-FileCopyrightText: 2014 Teo Mrnjavac <teo@kde.org>
|
* SPDX-FileCopyrightText: 2014 Teo Mrnjavac <teo@kde.org>
|
||||||
* SPDX-FileCopyrightText: 2017 Adriaan de Groot <groot@kde.org>
|
* SPDX-FileCopyrightText: 2017 Adriaan de Groot <groot@kde.org>
|
||||||
@ -95,7 +95,7 @@ log( const char* msg, unsigned int debugLevel )
|
|||||||
logfile.flush();
|
logfile.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( debugLevel <= LOGEXTRA || debugLevel < s_threshold )
|
if ( logLevelEnabled(debugLevel) )
|
||||||
{
|
{
|
||||||
QMutexLocker lock( &s_mutex );
|
QMutexLocker lock( &s_mutex );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user