diff options
author | Peter Bell <peterbell10@live.co.uk> | 2020-05-15 04:35:43 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-05-16 10:39:05 +0200 |
commit | 3189a3cbee8eb9d7ded7605776a75f35e5e2f122 (patch) | |
tree | 616ed3031baa99e1f34123b645c5b3cb6ed73223 /src/Bindings | |
parent | Enable some more clang-tidy linter checks (#4738) (diff) | |
download | cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.tar cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.tar.gz cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.tar.bz2 cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.tar.lz cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.tar.xz cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.tar.zst cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.zip |
Diffstat (limited to 'src/Bindings')
-rw-r--r-- | src/Bindings/ManualBindings.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp index 1aeadb602..b0c18b32e 100644 --- a/src/Bindings/ManualBindings.cpp +++ b/src/Bindings/ManualBindings.cpp @@ -33,6 +33,7 @@ #include "../HTTP/UrlParser.h" #include "../Item.h" #include "../LineBlockTracer.h" +#include "../Logger.h" #include "../Server.h" #include "../Root.h" #include "../StringCompression.h" @@ -401,7 +402,7 @@ static int tolua_LOG(lua_State * tolua_S) } // If the param is a cCompositeChat, read the log level from it: - cLogger::eLogLevel LogLevel = cLogger::llRegular; + eLogLevel LogLevel = eLogLevel::Regular; tolua_Error err; if (tolua_isusertype(tolua_S, 1, "cCompositeChat", false, &err)) { @@ -427,7 +428,7 @@ static int tolua_LOGINFO(lua_State * tolua_S) return 0; } - cLogger::GetInstance().LogSimple(GetLogMessage(tolua_S), cLogger::llInfo); + cLogger::GetInstance().LogSimple(GetLogMessage(tolua_S), eLogLevel::Info); return 0; } @@ -445,7 +446,7 @@ static int tolua_LOGWARN(lua_State * tolua_S) return 0; } - cLogger::GetInstance().LogSimple(GetLogMessage(tolua_S), cLogger::llWarning); + cLogger::GetInstance().LogSimple(GetLogMessage(tolua_S), eLogLevel::Warning); return 0; } @@ -463,7 +464,7 @@ static int tolua_LOGERROR(lua_State * tolua_S) return 0; } - cLogger::GetInstance().LogSimple(GetLogMessage(tolua_S), cLogger::llError); + cLogger::GetInstance().LogSimple(GetLogMessage(tolua_S), eLogLevel::Error); return 0; } |