diff options
-rw-r--r-- | common/log.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/log.cpp b/common/log.cpp index d94536f..5156a23 100644 --- a/common/log.cpp +++ b/common/log.cpp | |||
@@ -363,6 +363,10 @@ static bool isFiltered(DebugLevel debugLevel, const QByteArray &fullDebugArea) | |||
363 | 363 | ||
364 | bool Sink::Log::isFiltered(DebugLevel debugLevel, const char *debugArea, const char *debugComponent, const char *file) | 364 | bool Sink::Log::isFiltered(DebugLevel debugLevel, const char *debugArea, const char *debugComponent, const char *file) |
365 | { | 365 | { |
366 | //Avoid assembleDebugArea if we can, because it's fairly expensive. | ||
367 | if (debugLevel < debugOutputLevel()) { | ||
368 | return true; | ||
369 | } | ||
366 | return isFiltered(debugLevel, assembleDebugArea(debugArea, debugComponent, file).toLatin1()); | 370 | return isFiltered(debugLevel, assembleDebugArea(debugArea, debugComponent, file).toLatin1()); |
367 | } | 371 | } |
368 | 372 | ||