Skip to content

Commit

Permalink
Configure log level for application only
Browse files Browse the repository at this point in the history
Do not expose internal SDL logs to users.

Fixes #1441 <#1441>
  • Loading branch information
rom1v committed Jun 2, 2020
1 parent c4323df commit 6e1069a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 6e1069a

Please sign in to comment.