From cd92b8dd5ef97bfd2f5b459987060b27d05b1618 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 22 Feb 2019 09:21:22 -0500 Subject: [PATCH] [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. --- src/libcalamares/utils/Logger.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libcalamares/utils/Logger.cpp b/src/libcalamares/utils/Logger.cpp index 98aa2121f..b75fb6495 100644 --- a/src/libcalamares/utils/Logger.cpp +++ b/src/libcalamares/utils/Logger.cpp @@ -2,7 +2,7 @@ * * Copyright 2010-2011, Christian Muehlhaeuser * Copyright 2014, Teo Mrnjavac - * Copyright 2017-2018, Adriaan de Groot + * Copyright 2017-2019, Adriaan de Groot * * Calamares is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -68,9 +68,9 @@ logLevel() } 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 );