summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Logging/LogManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Logging/LogManager.cpp')
-rw-r--r--Source/Core/Common/Logging/LogManager.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/Common/Logging/LogManager.cpp b/Source/Core/Common/Logging/LogManager.cpp
index 5a586623cb..ae3ea6a66c 100644
--- a/Source/Core/Common/Logging/LogManager.cpp
+++ b/Source/Core/Common/Logging/LogManager.cpp
@@ -65,7 +65,7 @@ void GenericLogFmtImpl(LogLevel level, LogType type, const char* file, int line,
if (instance == nullptr)
return;
- if (!instance->IsEnabled(type, level))
+ if (!instance->IsEnabled(type, level) || !instance->IsAnyListenerEnabled())
return;
const auto message = fmt::vformat(format, args);
@@ -193,9 +193,6 @@ void LogManager::SaveSettings()
void LogManager::Log(LogLevel level, LogType type, const char* file, int line, const char* message)
{
- if (!IsEnabled(type, level) || !static_cast<bool>(m_listener_ids))
- return;
-
LogWithFullPath(level, type, file + GetPathCutOffPoint(), line, message);
}