From 5cbcd740287d30174af7771dc766d718612e5133 Mon Sep 17 00:00:00 2001 From: Xinyu Hou Date: Mon, 1 Jun 2015 23:42:58 +0100 Subject: [PATCH] Fixed using NOTE level logging on Mac #4745 --- src/lib/arch/unix/ArchLogUnix.cpp | 2 +- src/lib/platform/OSXScreen.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/arch/unix/ArchLogUnix.cpp b/src/lib/arch/unix/ArchLogUnix.cpp index a290463f..516ffa6a 100644 --- a/src/lib/arch/unix/ArchLogUnix.cpp +++ b/src/lib/arch/unix/ArchLogUnix.cpp @@ -66,7 +66,7 @@ ArchLogUnix::writeLog(ELevel level, const char* msg) priority = LOG_WARNING; break; - case kNOTE: + case kNOTIFY: priority = LOG_NOTICE; break; diff --git a/src/lib/platform/OSXScreen.cpp b/src/lib/platform/OSXScreen.cpp index acdeb4d5..35d819c1 100644 --- a/src/lib/platform/OSXScreen.cpp +++ b/src/lib/platform/OSXScreen.cpp @@ -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) {