summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-06-16 22:43:18 +0200
committerGitHub <noreply@github.com>2022-06-16 22:43:18 +0200
commit945f3222aee810d4e4309d21ea811399cc65d782 (patch)
treebecc580b33947c1938b08d16308791e734d63bfe
parentMerge pull request #8473 from DCNick3/implement-exit-process (diff)
parentMake yuzu-cmd respect log_filter setting (diff)
downloadyuzu-945f3222aee810d4e4309d21ea811399cc65d782.tar
yuzu-945f3222aee810d4e4309d21ea811399cc65d782.tar.gz
yuzu-945f3222aee810d4e4309d21ea811399cc65d782.tar.bz2
yuzu-945f3222aee810d4e4309d21ea811399cc65d782.tar.lz
yuzu-945f3222aee810d4e4309d21ea811399cc65d782.tar.xz
yuzu-945f3222aee810d4e4309d21ea811399cc65d782.tar.zst
yuzu-945f3222aee810d4e4309d21ea811399cc65d782.zip
-rw-r--r--src/yuzu_cmd/yuzu.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp
index 0dce5e274..e840732e2 100644
--- a/src/yuzu_cmd/yuzu.cpp
+++ b/src/yuzu_cmd/yuzu.cpp
@@ -138,6 +138,12 @@ int main(int argc, char** argv) {
Config config{config_path};
+ // apply the log_filter setting
+ // the logger was initialized before and doesn't pick up the filter on its own
+ Common::Log::Filter filter;
+ filter.ParseFilterString(Settings::values.log_filter.GetValue());
+ Common::Log::SetGlobalFilter(filter);
+
if (!program_args.empty()) {
Settings::values.program_args = program_args;
}