提交 094418e8 authored 作者: blu's avatar blu

feature heartbeat: evcloudsvc - evdaemon

上级 cc8ed678
...@@ -162,7 +162,10 @@ json getModuleGidsFromCfg(string sn, json &data, string caller, int ipcIdx) ...@@ -162,7 +162,10 @@ json getModuleGidsFromCfg(string sn, json &data, string caller, int ipcIdx)
// lock_guard<mutex> lock(cacheLock); // lock_guard<mutex> lock(cacheLock);
string peerId; string peerId;
for(auto &[k,v]:data.items()) { for(auto &[k,v]:data.items()) {
if(v.size()!= 0 && (v.count("sn") == 0|| v["sn"].size() == 0 || v.count("ipcs") == 0 || v["ipcs"].size() == 0) ) { if(v.size() == 0) {
continue;
}
if(v.count("sn") == 0|| v["sn"].size() == 0 || v.count("ipcs") == 0 || v["ipcs"].size() == 0) {
msg += fmt::format( "\t\tcluster {} has no sn/ipcs field {}:{}", v.dump(), __FILE__, __LINE__); msg += fmt::format( "\t\tcluster {} has no sn/ipcs field {}:{}", v.dump(), __FILE__, __LINE__);
spdlog::warn(msg); spdlog::warn(msg);
ret["msg"] = msg; ret["msg"] = msg;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论