提交 7046039b authored 作者: blu's avatar blu

cloud registry

上级 0ed79758
...@@ -139,7 +139,7 @@ namespace LVDB { ...@@ -139,7 +139,7 @@ namespace LVDB {
ret = cb(modname, m, pUser); ret = cb(modname, m, pUser);
cnt++; cnt++;
if(ret <0) { if(ret <0) {
spdlog::error("failed to traverse and callback config on module: {}", m.dump()); spdlog::error("failed to traverse and callback config on module: {}", m.dump(4));
return ret; return ret;
} }
} }
...@@ -152,7 +152,7 @@ namespace LVDB { ...@@ -152,7 +152,7 @@ namespace LVDB {
ret = cb(mn,m, pUser); ret = cb(mn,m, pUser);
cnt++; cnt++;
if(ret <0) { if(ret <0) {
spdlog::error("failed to traverse and callback config on module: {}", m.dump()); spdlog::error("failed to traverse and callback config on module: {}", m.dump(4));
return ret; return ret;
} }
} }
...@@ -341,7 +341,7 @@ togo_end: ...@@ -341,7 +341,7 @@ togo_end:
} }
} }
ret = setValue(value.dump(), key,fileName, NULL); ret = setValue(value.dump(4), key,fileName, NULL);
return ret; return ret;
} }
...@@ -367,7 +367,7 @@ togo_end: ...@@ -367,7 +367,7 @@ togo_end:
// {"sn":string, "updatetime": string, "lastboot": string} // {"sn":string, "updatetime": string, "lastboot": string}
int _validateSn(const json &info) { int _validateSn(const json &info) {
if(info.count("sn") == 0 || info["sn"].size() == 0) { if(info.count("sn") == 0 || info["sn"].size() == 0) {
spdlog::error("invalid sn config:{}", info.dump()); spdlog::error("invalid sn config:{}", info.dump(4));
return -1; return -1;
} }
...@@ -441,7 +441,7 @@ togo_end: ...@@ -441,7 +441,7 @@ togo_end:
// config // config
int _validateConfig(const json &config) { int _validateConfig(const json &config) {
if(config.count("data") == 0|| config["data"].size() == 0) { if(config.count("data") == 0|| config["data"].size() == 0) {
spdlog::error("invliad config: {}", config.dump()); spdlog::error("invliad config: {}", config.dump(4));
return -1; return -1;
} }
return 0; return 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论