Fixed using NOTE level logging on Mac #4745

This commit is contained in:
Xinyu Hou 2015-06-01 23:42:58 +01:00
parent e7f358afb2
commit 5cbcd74028
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ ArchLogUnix::writeLog(ELevel level, const char* msg)
priority = LOG_WARNING;
break;
case kNOTE:
case kNOTIFY:
priority = LOG_NOTICE;
break;

View File

@ -1999,7 +1999,7 @@ OSXScreen::handleCGInputEvent(CGEventTapProxy proxy,
case kCGEventTapDisabledByTimeout:
// Re-enable our event-tap
CGEventTapEnable(screen->m_eventTapPort, true);
LOG((CLOG_NOTE "quartz event tap was disabled by timeout, re-enabling"));
LOG((CLOG_INFO "quartz event tap was disabled by timeout, re-enabling"));
break;
case kCGEventTapDisabledByUserInput:
LOG((CLOG_ERR "quartz event tap was disabled by user input"));
@ -2013,7 +2013,7 @@ OSXScreen::handleCGInputEvent(CGEventTapProxy proxy,
case NX_NUMPROCS:
break;
default:
LOG((CLOG_NOTE "unknown quartz event type: 0x%02x", type));
LOG((CLOG_WARN "unknown quartz event type: 0x%02x", type));
}
if(screen->m_isOnScreen) {