Made debug the lower priority, so that verbose output can
be used to display additional message for stk, but be still able to filter out debug messages. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12386 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c0a922fe7c
commit
c7274ac230
@ -136,8 +136,13 @@ void Log::printMessage(int level, const char *component, const char *format,
|
||||
android_LogPriority alp;
|
||||
switch (level)
|
||||
{
|
||||
case LL_VERBOSE: alp = ANDROID_LOG_VERBOSE; break;
|
||||
case LL_DEBUG: alp = ANDROID_LOG_DEBUG; break;
|
||||
// STK is using the levels slightly different from android
|
||||
// (debug lowest, verbose above it; while android reverses
|
||||
// this order. So to get the same behaviour (e.g. filter
|
||||
// out debug message, but still get verbose, we swap
|
||||
// the order here.
|
||||
case LL_VERBOSE: alp = ANDROID_LOG_DEBUG; break;
|
||||
case LL_DEBUG: alp = ANDROID_LOG_VERBOSE; break;
|
||||
case LL_INFO: alp = ANDROID_LOG_INFO; break;
|
||||
case LL_WARN : alp = ANDROID_LOG_WARN; break;
|
||||
case LL_ERROR: alp = ANDROID_LOG_ERROR; break;
|
||||
|
@ -32,8 +32,8 @@ class Log
|
||||
{
|
||||
public:
|
||||
/** The various log levels used in STK. */
|
||||
enum LogLevel { LL_VERBOSE,
|
||||
LL_DEBUG,
|
||||
enum LogLevel { LL_DEBUG,
|
||||
LL_VERBOSE,
|
||||
LL_INFO,
|
||||
LL_WARN,
|
||||
LL_ERROR,
|
||||
|
Loading…
Reference in New Issue
Block a user