summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/log.h4
-rw-r--r--src/common/log_manager.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/log.h b/src/common/log.h
index de0629445..d95f51f56 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -88,10 +88,10 @@ void GenericLog(LOGTYPES_LEVELS level, LOGTYPES_TYPE type,
;
#if defined LOGGING || defined _DEBUG || defined DEBUGFAST
-#define MAX_LOGLEVEL LogTypes::LDEBUG
+#define MAX_LOGLEVEL DEBUG_LEVEL
#else
#ifndef MAX_LOGLEVEL
-#define MAX_LOGLEVEL LogTypes::LWARNING
+#define MAX_LOGLEVEL WARNING_LEVEL
#endif // loglevel
#endif // logging
diff --git a/src/common/log_manager.cpp b/src/common/log_manager.cpp
index aec2636ec..80fd473b9 100644
--- a/src/common/log_manager.cpp
+++ b/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_shortName, shortName, 32);
- m_level = MAX_LOGLEVEL;
+ m_level = (LogTypes::LOG_LEVELS)MAX_LOGLEVEL;
}
// LogContainer