Skip to content

Commit

Permalink
修复不支持的log配置文件加载时未报正确错误的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lailongwei committed Oct 8, 2023
1 parent b22506b commit 8c36f9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions llbc/src/core/log/LoggerConfigurator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 8c36f9e

Please sign in to comment.