chore(log): remove un needed getFilterName methods
This commit is contained in:
parent
acf865fa11
commit
a3f97e55e0
3 changed files with 1 additions and 21 deletions
|
|
@ -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<int>(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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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()))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue