未验证 提交 09a20f41 编写于 作者: X XuanYang-cn 提交者: GitHub

Fix no degub and info log generated after server started #3406 (#3476)

* fix log file not print bug
Signed-off-by: Nyangxuan <xuan.yang@zilliz.com>

* alter changelog
Signed-off-by: Nyangxuan <xuan.yang@zilliz.com>

* fix value
Signed-off-by: Nyangxuan <xuan.yang@zilliz.com>
Co-authored-by: Nyangxuan <xuan.yang@zilliz.com>
上级 dd2535e1
......@@ -29,6 +29,7 @@ Please mark all changes in change log and use the issue from GitHub
- \#2869 Create index failed with binary vectors
- \#2893 Insert binary data failed
- \#2957 There is no exisitence check of annoy search parameter
- \#3406 No debug and info log generated after server started
- \#3407 Server get stuck if create index after entities inserted with no manual flush
## Feature
......
......@@ -240,7 +240,7 @@ LogMgr::parse_level(const std::string& level) {
void
LogMgr::set_level(el::Configurations& default_conf, el::Level level, bool enable, const std::string& log_path) {
default_conf.set(el::Level::Info, el::ConfigurationType::Filename, log_path.c_str());
default_conf.set(level, el::ConfigurationType::Filename, log_path.c_str());
if (enable) {
default_conf.set(level, el::ConfigurationType::Enabled, "true");
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册