From a2a304096786f70c706a4f3e79e3fe49655bf778 Mon Sep 17 00:00:00 2001 From: Sucan126 <632190820@qq.com> Date: Mon, 22 Sep 2025 19:21:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor(custom=5Frobot):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=88=97=E8=A1=A8=E7=9A=84=E8=AF=A6=E7=BB=86?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除GetServiceList方法中对每个服务状态的详细日志输出,保留获取服务列表成功的基本日志 --- src/custom_robot.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/custom_robot.cpp b/src/custom_robot.cpp index ace16ac..f723717 100644 --- a/src/custom_robot.cpp +++ b/src/custom_robot.cpp @@ -148,11 +148,11 @@ bool CustomRobot::GetServiceList(std::vector& } 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) {