summaryrefslogtreecommitdiffstats
path: root/src/common/logging/text_formatter.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-03-06 19:15:02 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-03-06 19:23:52 +0100
commit0aa44e238db7a72f4fb8b347168ec76c3ce48ad5 (patch)
treedba02c60d0a663708265089394c634a655417f9d /src/common/logging/text_formatter.cpp
parentMerge pull request #630 from archshift/swap (diff)
downloadyuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.tar
yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.tar.gz
yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.tar.bz2
yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.tar.lz
yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.tar.xz
yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.tar.zst
yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.zip
Diffstat (limited to '')
-rw-r--r--src/common/logging/text_formatter.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cpp
index ef5739d84..36c91c4f6 100644
--- a/src/common/logging/text_formatter.cpp
+++ b/src/common/logging/text_formatter.cpp
@@ -11,7 +11,6 @@
#endif
#include "common/logging/backend.h"
-#include "common/logging/filter.h"
#include "common/logging/log.h"
#include "common/logging/text_formatter.h"
@@ -116,7 +115,7 @@ void PrintColoredMessage(const Entry& entry) {
#endif
}
-void TextLoggingLoop(std::shared_ptr<Logger> logger, const Filter* filter) {
+void TextLoggingLoop(std::shared_ptr<Logger> logger) {
std::array<Entry, 256> entry_buffer;
while (true) {
@@ -126,9 +125,7 @@ void TextLoggingLoop(std::shared_ptr<Logger> logger, const Filter* filter) {
}
for (size_t i = 0; i < num_entries; ++i) {
const Entry& entry = entry_buffer[i];
- if (filter->CheckMessage(entry.log_class, entry.log_level)) {
- PrintColoredMessage(entry);
- }
+ PrintColoredMessage(entry);
}
}
}