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

cloud registry

上级 7046039b
......@@ -26,9 +26,13 @@ class HttpSrv{
json config;
json info;
int port = 8088;
thread thMon;
void setMonitorThread() {
thMon = thread([this](){
//
});
}
protected:
......
......@@ -77,24 +77,6 @@ private:
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;
string proto, addr;
while(!inited) {
......
......@@ -113,7 +113,7 @@ private:
spdlog::error("failed to get local configuration");
exit(1);
}
spdlog::info("config: {:s}", config.dump());
spdlog::info("evmlmotion {} config: {}", devSn, config.dump(4));
json evmlmotion;
json evmgr;
json ipc;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论