mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-27 12:25:45 -05:00
[libcalamares] Simplify logging code
- log() was never called with a non-default value for toDisk, so simplify to true. Keep the if() around to indicate block scope.
This commit is contained in:
parent
79c20b8fbd
commit
cd92b8dd5e
1 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
*
|
*
|
||||||
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||||
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
||||||
* Copyright 2017-2018, Adriaan de Groot <groot@kde.org>
|
* Copyright 2017-2019, Adriaan de Groot <groot@kde.org>
|
||||||
*
|
*
|
||||||
* Calamares is free software: you can redistribute it and/or modify
|
* Calamares is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -68,9 +68,9 @@ logLevel()
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
log( const char* msg, unsigned int debugLevel, bool toDisk = true )
|
log( const char* msg, unsigned int debugLevel )
|
||||||
{
|
{
|
||||||
if ( toDisk || debugLevel < s_threshold )
|
if ( true )
|
||||||
{
|
{
|
||||||
QMutexLocker lock( &s_mutex );
|
QMutexLocker lock( &s_mutex );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue