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

cloud registry

上级 7046039b
...@@ -26,9 +26,13 @@ class HttpSrv{ ...@@ -26,9 +26,13 @@ class HttpSrv{
json config; json config;
json info; json info;
int port = 8088; int port = 8088;
thread thMon;
void setMonitorThread() { void setMonitorThread() {
thMon = thread([this](){
//
});
} }
protected: protected:
......
...@@ -76,24 +76,6 @@ private: ...@@ -76,24 +76,6 @@ private:
} }
spdlog::info("evmgr local config:\n{}", config.dump(4)); spdlog::info("evmgr local config:\n{}", config.dump(4));
// // set all module status to 0
// ret = LVDB::traverseConfigureModules(config, [](string modname, json &m, void* pUser)->int{
// if(m.count("status") != 0)
// {
// //cout << modname <<" ," << m.dump() << endl;
// m["status"] = 0;
// }
// return 0;
// });
// if(ret < 0) {
// spdlog::error("evmgr {} failed to set module status to 0", devSn);
// }else{
// //spdlog::info("new config: {}", config.dump());
// LVDB::setLocalConfig(config);
// }
int opt_notify = ZMQ_NOTIFY_DISCONNECT|ZMQ_NOTIFY_CONNECT; int opt_notify = ZMQ_NOTIFY_DISCONNECT|ZMQ_NOTIFY_CONNECT;
string proto, addr; string proto, addr;
......
...@@ -113,7 +113,7 @@ private: ...@@ -113,7 +113,7 @@ private:
spdlog::error("failed to get local configuration"); spdlog::error("failed to get local configuration");
exit(1); exit(1);
} }
spdlog::info("config: {:s}", config.dump()); spdlog::info("evmlmotion {} config: {}", devSn, config.dump(4));
json evmlmotion; json evmlmotion;
json evmgr; json evmgr;
json ipc; json ipc;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论