summaryrefslogtreecommitdiff
path: root/src/common/logging/text_formatter.h
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot2015-03-06 19:15:02 +0100
committerGravatar Emmanuel Gil Peyrot2015-03-06 19:23:52 +0100
commit0aa44e238db7a72f4fb8b347168ec76c3ce48ad5 (patch)
treedba02c60d0a663708265089394c634a655417f9d /src/common/logging/text_formatter.h
parentMerge pull request #630 from archshift/swap (diff)
downloadyuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.tar.gz
yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.tar.xz
yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.zip
Logging: check for filter before sending to the queue, to skip all heavy formatting on the other thread.
Diffstat (limited to 'src/common/logging/text_formatter.h')
-rw-r--r--src/common/logging/text_formatter.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/logging/text_formatter.h b/src/common/logging/text_formatter.h
index 2f05794f0..8474a1904 100644
--- a/src/common/logging/text_formatter.h
+++ b/src/common/logging/text_formatter.h
@@ -11,7 +11,6 @@ namespace Log {
11 11
12class Logger; 12class Logger;
13struct Entry; 13struct Entry;
14class Filter;
15 14
16/** 15/**
17 * Attempts to trim an arbitrary prefix from `path`, leaving only the part starting at `root`. It's 16 * Attempts to trim an arbitrary prefix from `path`, leaving only the part starting at `root`. It's
@@ -36,6 +35,6 @@ void PrintColoredMessage(const Entry& entry);
36 * Logging loop that repeatedly reads messages from the provided logger and prints them to the 35 * Logging loop that repeatedly reads messages from the provided logger and prints them to the
37 * console. It is the baseline barebones log outputter. 36 * console. It is the baseline barebones log outputter.
38 */ 37 */
39void TextLoggingLoop(std::shared_ptr<Logger> logger, const Filter* filter); 38void TextLoggingLoop(std::shared_ptr<Logger> logger);
40 39
41} 40}