diff options
| author | 2015-03-06 19:15:02 +0100 | |
|---|---|---|
| committer | 2015-03-06 19:23:52 +0100 | |
| commit | 0aa44e238db7a72f4fb8b347168ec76c3ce48ad5 (patch) | |
| tree | dba02c60d0a663708265089394c634a655417f9d /src/common/logging/text_formatter.h | |
| parent | Merge pull request #630 from archshift/swap (diff) | |
| download | yuzu-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.h | 3 |
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 | ||
| 12 | class Logger; | 12 | class Logger; |
| 13 | struct Entry; | 13 | struct Entry; |
| 14 | class 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 | */ |
| 39 | void TextLoggingLoop(std::shared_ptr<Logger> logger, const Filter* filter); | 38 | void TextLoggingLoop(std::shared_ptr<Logger> logger); |
| 40 | 39 | ||
| 41 | } | 40 | } |