This commit is contained in:
Henrik Rydgard 2017-03-18 11:11:27 +01:00
parent 4f707a1022
commit 7c0761ef15
2 changed files with 4 additions and 4 deletions

View File

@ -610,7 +610,7 @@ void ConsoleListener::Log(const LogMessage &msg) {
if (bUseColor)
{
strcpy(ResetAttr, "\033[0m");
switch (Level)
switch (msg.Level)
{
case NOTICE_LEVEL: // light green
strcpy(ColorAttr, "\033[92m");

View File

@ -469,10 +469,10 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
LogTypes::LOG_TYPE type = (LogTypes::LOG_TYPE)i;
logman->SetEnabled(type, true);
logman->SetLogLevel(type, logLevel);
#ifdef __ANDROID__
logman->AddListener(type, logger);
#endif
}
#ifdef __ANDROID__
logman->AddListener(logger);
#endif
#endif
// Allow the lang directory to be overridden for testing purposes (e.g. Android, where it's hard to