refactor(custom_robot): 移除服务列表的详细日志输出
移除GetServiceList方法中对每个服务状态的详细日志输出,保留获取服务列表成功的基本日志
This commit is contained in:
@@ -148,11 +148,11 @@ bool CustomRobot::GetServiceList(std::vector<unitree::robot::go2::ServiceState>&
|
|||||||
}
|
}
|
||||||
|
|
||||||
LOG_INFO("Successfully retrieved service list with " + std::to_string(serviceList.size()) + " services");
|
LOG_INFO("Successfully retrieved service list with " + std::to_string(serviceList.size()) + " services");
|
||||||
for (const auto& service : serviceList) {
|
// for (const auto& service : serviceList) {
|
||||||
std::string statusStr = (service.status == 1) ? "ACTIVE" : "INACTIVE";
|
// std::string statusStr = (service.status == 1) ? "ACTIVE" : "INACTIVE";
|
||||||
LOG_INFO("Service: " + service.name + " | Status: " + statusStr + " | Protect: " +
|
// LOG_INFO("Service: " + service.name + " | Status: " + statusStr + " | Protect: " +
|
||||||
(service.protect ? "YES" : "NO"));
|
// (service.protect ? "YES" : "NO"));
|
||||||
}
|
// }
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user