提交 cc8ed678 authored 作者: blu's avatar blu

feature heartbeat: evcloudsvc - evdaemon

上级 24def48d
......@@ -162,7 +162,7 @@ json getModuleGidsFromCfg(string sn, json &data, string caller, int ipcIdx)
// lock_guard<mutex> lock(cacheLock);
string peerId;
for(auto &[k,v]:data.items()) {
if(v.count("sn") == 0|| v["sn"].size() == 0 || v.count("ipcs") == 0 || v["ipcs"].size() == 0) {
if(v.size()!= 0 && (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__);
spdlog::warn(msg);
ret["msg"] = msg;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论