Enhance logging in CustomRobot::processCmd method. Added an informational log statement to indicate the success of command processing, improving visibility into command execution outcomes.
This commit is contained in:
@@ -246,7 +246,7 @@ void CustomRobot::processCmd(const nlohmann::json& message) {
|
|||||||
LOG_ERROR("Unknown command type: " + type);
|
LOG_ERROR("Unknown command type: " + type);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
LOG_INFO(cmd + ", success: " + std::string(success ? "true" : "false"));
|
||||||
// publishCmdResponse(type, cmd, success);
|
// publishCmdResponse(type, cmd, success);
|
||||||
|
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user