diff --git a/src/lib/base/Log.cpp b/src/lib/base/Log.cpp index 7a0818edf..c0ebffad4 100644 --- a/src/lib/base/Log.cpp +++ b/src/lib/base/Log.cpp @@ -146,20 +146,6 @@ Log *Log::getInstance() return s_log; } -const char *Log::getFilterName() const -{ - return getFilterName(getFilter()); -} - -const char *Log::getFilterName(LogLevel::Level level) const -{ - const auto levelIndex = static_cast(level); - if (levelIndex < 0) { - return "Message"; - } - return g_priority[levelIndex]; -} - void Log::print(const char *file, int line, const char *fmt, ...) { const int initBufferSize = 1024; diff --git a/src/lib/base/Log.h b/src/lib/base/Log.h index af85be4a2..1e7e45a0e 100644 --- a/src/lib/base/Log.h +++ b/src/lib/base/Log.h @@ -106,12 +106,6 @@ public: //! Get the minimum priority level. LogLevel::Level getFilter() const; - //! Get the filter name of the current filter level. - const char *getFilterName() const; - - //! Get the filter name of a specified filter level. - const char *getFilterName(LogLevel::Level level) const; - //! Get the singleton instance of the log static Log *getInstance(); diff --git a/src/lib/deskflow/App.cpp b/src/lib/deskflow/App.cpp index 764807281..4e1a19462 100644 --- a/src/lib/deskflow/App.cpp +++ b/src/lib/deskflow/App.cpp @@ -136,7 +136,7 @@ void App::loggingFilterWarning() const if ((CLOG->getFilter() > CLOG->getConsoleMaxLevel()) && (Settings::value(Settings::Log::ToFile).toBool())) { LOG_WARN( "log messages above %s are NOT sent to console (use file logging)", - CLOG->getFilterName(CLOG->getConsoleMaxLevel()) + qPrintable(LogLevel::toOption(CLOG->getConsoleMaxLevel())) ); } }