Browse Source
Merge pull request #8474 from DCNick3/yuzu-cmd-respect-log-filter
Make yuzu-cmd respect log_filter setting
pull/15/merge
Morph
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
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; |
|
|
|
} |
|
|
|
|