[libcalamares] Console-logging follows -D flag exactly

- Don't always log LOGEXTRA and below.
This commit is contained in:
Adriaan de Groot 2020-07-07 15:12:50 +02:00
parent 67aa34c4a4
commit 631923abf8

View File

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