Configure log level for application only
Do not expose internal SDL logs to users. Fixes #1441 <https://github.com/Genymobile/scrcpy/issues/1441>
This commit is contained in:
parent
c4323df976
commit
6e1069a822
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
SDL_LogPriority sdl_log = convert_log_level_to_sdl(args.opts.log_level);
|
||||
SDL_LogSetAllPriority(sdl_log);
|
||||
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, sdl_log);
|
||||
|
||||
if (args.help) {
|
||||
scrcpy_print_usage(argv[0]);
|
||||
|
|
Loading…
Reference in a new issue