提交 27c876b6 authored 作者: blu's avatar blu

big refacting of communitation architect

上级 e97b4e6b
......@@ -257,9 +257,7 @@ private:
//
}else{
sendConfig(data["data"], selfId);
spdlog::info("evcloudsvc sent config to device {}:\n{}", selfId, data["data"].dump());
}
}
else {
peerData["status"][selfId] = 0;
......@@ -377,7 +375,7 @@ private:
s.insert(this->configMap["mod2mgr"][elem].get<string>());
spdlog::info("evcloudsvc {}->{}", elem, this->configMap["mod2mgr"][elem].get<string>());
}
for(auto &key : s) {
if(this->peerData["config"].count(key) == 0) {
spdlog::error("evcloudsvc no peerData config for device {}", key);
......
......@@ -122,9 +122,9 @@ class EvDaemon{
string peerName;
ret = cfgutils::getPeerId(mn, m, peerId, peerName);
if(ret != 0) {
// TODO
continue;
}
this->peerData["config"][peerId] = v;
if(this->peerData["status"].count(peerId) == 0||this->peerData["status"][peerId] == 0) {
......@@ -148,7 +148,7 @@ class EvDaemon{
}
}
}catch(exception &e) {
spdlog::error("evdaemon {} exception {} to reload and apply configuration:\n{}", this->devSn, e.what(), this->config.dump());
spdlog::error("evdaemon {} exception reload and apply configuration: {}:\n{}", this->devSn, e.what(), this->config.dump());
return -1;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论