فهرست منبع

logger fix for linux

bunnei 12 سال پیش
والد
کامیت
505d984f16
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      src/common/log.h
  2. 1 1
      src/common/log_manager.cpp

+ 2 - 2
src/common/log.h

@@ -88,10 +88,10 @@ void GenericLog(LOGTYPES_LEVELS level, LOGTYPES_TYPE type,
         ;
         ;
 
 
 #if defined LOGGING || defined _DEBUG || defined DEBUGFAST
 #if defined LOGGING || defined _DEBUG || defined DEBUGFAST
-#define MAX_LOGLEVEL LogTypes::LDEBUG
+#define MAX_LOGLEVEL DEBUG_LEVEL
 #else
 #else
 #ifndef MAX_LOGLEVEL
 #ifndef MAX_LOGLEVEL
-#define MAX_LOGLEVEL LogTypes::LWARNING
+#define MAX_LOGLEVEL WARNING_LEVEL
 #endif // loglevel
 #endif // loglevel
 #endif // logging
 #endif // logging
 
 

+ 1 - 1
src/common/log_manager.cpp

@@ -147,7 +147,7 @@ LogContainer::LogContainer(const char* shortName, const char* fullName, bool ena
 {
 {
     strncpy(m_fullName, fullName, 128);
     strncpy(m_fullName, fullName, 128);
     strncpy(m_shortName, shortName, 32);
     strncpy(m_shortName, shortName, 32);
-    m_level = MAX_LOGLEVEL;
+    m_level = (LogTypes::LOG_LEVELS)MAX_LOGLEVEL;
 }
 }
 
 
 // LogContainer
 // LogContainer