From 8c36f9ef02ad04af7394a3a2f2b3788c0fb12ed8 Mon Sep 17 00:00:00 2001 From: lailongwei <964855959@qq.com> Date: Sun, 8 Oct 2023 08:41:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E7=9A=84log=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E6=97=B6=E6=9C=AA=E6=8A=A5=E6=AD=A3=E7=A1=AE=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- llbc/src/core/log/LoggerConfigurator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llbc/src/core/log/LoggerConfigurator.cpp b/llbc/src/core/log/LoggerConfigurator.cpp index e9dfde21..7addb362 100644 --- a/llbc/src/core/log/LoggerConfigurator.cpp +++ b/llbc/src/core/log/LoggerConfigurator.cpp @@ -83,6 +83,11 @@ int LLBC_LoggerConfigurator::Initialize(const LLBC_String &cfgFile) loggerCfg[logCfgItem[LLBC_XMLKeys::Name]] = logCfgItem[LLBC_XMLKeys::Value]; } } + else + { + LLBC_SetLastError(LLBC_ERROR_NOT_SUPPORT); + return LLBC_FAILED; + } // Create root logger config info. const LLBC_Variant &rootCfg = cfg[LLBC_CFG_LOG_ROOT_LOGGER_NAME];