use ledger log level
This commit is contained in:
@@ -756,6 +756,7 @@ bool parseJsonMessageUD(const std::string& json_str, const std::string& output_d
|
||||
//json_data.tmnl_factory = item.value("manufacturer", "");
|
||||
//json_data.tmnl_status = item.value("status", "");
|
||||
json_data.dev_type = item.value("devType", "");
|
||||
json_data.DevLogLevel = item.value("DevLogLevel", "WARN");
|
||||
//json_data.dev_key = item.value("devKey", "");
|
||||
//json_data.dev_series = item.value("series", "");
|
||||
|
||||
@@ -783,6 +784,7 @@ bool parseJsonMessageUD(const std::string& json_str, const std::string& output_d
|
||||
m.monitor_name = monitor_item.value("name", "");
|
||||
m.logical_device_seq = monitor_item.value("lineNo", "");
|
||||
m.voltage_level = monitor_item.value("voltageLevel", "");
|
||||
m.LineLogLevel = monitor_item.value("LineLogLevel", "WARN");
|
||||
// status 可能是数字,统一转成字符串存
|
||||
if (monitor_item.contains("status") && monitor_item["status"].is_number_integer())
|
||||
m.status = std::to_string(monitor_item["status"].get<int>());
|
||||
@@ -871,6 +873,8 @@ bool parseJsonMessageUD(const std::string& json_str, const std::string& output_d
|
||||
}
|
||||
}
|
||||
reply_list.push_back(std::move(one));
|
||||
|
||||
refresh_log_level_cache_locked();
|
||||
}
|
||||
else if(code_str == "ledger_modify"){
|
||||
|
||||
@@ -929,6 +933,8 @@ bool parseJsonMessageUD(const std::string& json_str, const std::string& output_d
|
||||
|
||||
}
|
||||
reply_list.push_back(std::move(one));
|
||||
|
||||
refresh_log_level_cache_locked();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -984,6 +990,8 @@ bool parseJsonMessageUD(const std::string& json_str, const std::string& output_d
|
||||
}
|
||||
}
|
||||
reply_list.push_back(std::move(one));
|
||||
|
||||
refresh_log_level_cache_locked();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user