Allow -info to enable INFO level logging.

This commit is contained in:
Steve 2016-03-28 16:07:47 +01:00
parent c0a547addb
commit 2168b72401
1 changed files with 6 additions and 1 deletions

View File

@ -29,7 +29,7 @@ int main(int argc, char *argv[])
long expireTextTimer;
SDL_Event event;
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_WARN);
memset(&app, 0, sizeof(App));
memset(&dev, 0, sizeof(Dev));
@ -173,6 +173,11 @@ static void handleArguments(int argc, char *argv[])
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG);
}
if (strcmp(argv[i], "-info") == 0)
{
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
}
}
}