mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 12:59:23 +08:00
Fix lint
Signed-off-by: JinHai-CN <hai.jin@zilliz.com>
This commit is contained in:
parent
92508bcc0a
commit
23ad133c14
@ -54,31 +54,31 @@ RolloutHandler(const char* filename, std::size_t size, el::Level level) {
|
|||||||
int ret;
|
int ret;
|
||||||
std::string m(std::string(dir) + "/" + s);
|
std::string m(std::string(dir) + "/" + s);
|
||||||
s = m;
|
s = m;
|
||||||
switch(level){
|
switch (level) {
|
||||||
case el::Level::Debug:
|
case el::Level::Debug:
|
||||||
s.append("." + std::to_string(++debug_idx));
|
s.append("." + std::to_string(++debug_idx));
|
||||||
ret = rename(m.c_str(), s.c_str());
|
ret = rename(m.c_str(), s.c_str());
|
||||||
break;
|
break;
|
||||||
case el::Level::Warning:
|
case el::Level::Warning:
|
||||||
s.append("." + std::to_string(++warning_idx));
|
s.append("." + std::to_string(++warning_idx));
|
||||||
ret = rename(m.c_str(), s.c_str());
|
ret = rename(m.c_str(), s.c_str());
|
||||||
break;
|
break;
|
||||||
case el::Level::Trace:
|
case el::Level::Trace:
|
||||||
s.append("." + std::to_string(++trace_idx));
|
s.append("." + std::to_string(++trace_idx));
|
||||||
ret = rename(m.c_str(), s.c_str());
|
ret = rename(m.c_str(), s.c_str());
|
||||||
break;
|
break;
|
||||||
case el::Level::Error:
|
case el::Level::Error:
|
||||||
s.append("." + std::to_string(++error_idx));
|
s.append("." + std::to_string(++error_idx));
|
||||||
ret = rename(m.c_str(), s.c_str());
|
ret = rename(m.c_str(), s.c_str());
|
||||||
break;
|
break;
|
||||||
case el::Level::Fatal:
|
case el::Level::Fatal:
|
||||||
s.append("." + std::to_string(++fatal_idx));
|
s.append("." + std::to_string(++fatal_idx));
|
||||||
ret = rename(m.c_str(), s.c_str());
|
ret = rename(m.c_str(), s.c_str());
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
s.append("." + std::to_string(++global_idx));
|
s.append("." + std::to_string(++global_idx));
|
||||||
ret = rename(m.c_str(), s.c_str());
|
ret = rename(m.c_str(), s.c_str());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user