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");
|
||||
for (const auto& service : serviceList) {
|
||||
std::string statusStr = (service.status == 1) ? "ACTIVE" : "INACTIVE";
|
||||
LOG_INFO("Service: " + service.name + " | Status: " + statusStr + " | Protect: " +
|
||||
(service.protect ? "YES" : "NO"));
|
||||
}
|
||||
// for (const auto& service : serviceList) {
|
||||
// std::string statusStr = (service.status == 1) ? "ACTIVE" : "INACTIVE";
|
||||
// LOG_INFO("Service: " + service.name + " | Status: " + statusStr + " | Protect: " +
|
||||
// (service.protect ? "YES" : "NO"));
|
||||
// }
|
||||
|
||||
return true;
|
||||
} catch (const std::exception& e) {
|
||||
|
||||
Reference in New Issue
Block a user