mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-09 09:24:24 +02:00
Don't log SDL errors by default
There are many recoverable errors that may happen internally and can be safely ignored if the public API doesn't return an error code. Seeing them causes lots of developer anxiety and they generally aren't helpful. Fixes https://github.com/libsdl-org/SDL/issues/11813
This commit is contained in:
@@ -145,10 +145,6 @@ static int SDLCALL SDLTest_CommonStateParseCommonArguments(void *data, char **ar
|
||||
SDL_SetLogPriorities(SDL_LOG_PRIORITY_VERBOSE);
|
||||
return 2;
|
||||
}
|
||||
if (SDL_strcasecmp(argv[index], "error") == 0) {
|
||||
SDL_SetLogPriority(SDL_LOG_CATEGORY_ERROR, SDL_LOG_PRIORITY_VERBOSE);
|
||||
return 2;
|
||||
}
|
||||
if (SDL_strcasecmp(argv[index], "system") == 0) {
|
||||
SDL_SetLogPriority(SDL_LOG_CATEGORY_SYSTEM, SDL_LOG_PRIORITY_VERBOSE);
|
||||
return 2;
|
||||
|
||||
Reference in New Issue
Block a user