summaryrefslogtreecommitdiffstats
path: root/src/citra
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-03-09 20:42:18 +0100
committerbunnei <bunneidev@gmail.com>2015-03-09 20:42:18 +0100
commit3da94a597b5642c1b586700d72255589cf5a0cdf (patch)
tree9f73ded034bceaab1f7e41cf19fe987d19b2e083 /src/citra
parentMerge pull request #645 from lioncash/ldm (diff)
parentLogging: check for filter before sending to the queue, to skip all heavy formatting on the other thread. (diff)
downloadyuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.tar
yuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.tar.gz
yuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.tar.bz2
yuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.tar.lz
yuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.tar.xz
yuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.tar.zst
yuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.zip
Diffstat (limited to 'src/citra')
-rw-r--r--src/citra/citra.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp
index 69f0b35b3..2c6ced920 100644
--- a/src/citra/citra.cpp
+++ b/src/citra/citra.cpp
@@ -22,7 +22,8 @@
int __cdecl main(int argc, char **argv) {
std::shared_ptr<Log::Logger> logger = Log::InitGlobalLogger();
Log::Filter log_filter(Log::Level::Debug);
- std::thread logging_thread(Log::TextLoggingLoop, logger, &log_filter);
+ Log::SetFilter(&log_filter);
+ std::thread logging_thread(Log::TextLoggingLoop, logger);
SCOPE_EXIT({
logger->Close();
logging_thread.join();