Skip to content

Commit 4d7ff97

Browse files
authored
adjust warn message that requested goal is already expired. (#1363)
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
1 parent 2f9a771 commit 4d7ff97

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rclpy/rclpy/action/server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,10 @@ async def _execute_get_result_request(self, request_header_and_message):
411411
'Result request received for goal with ID: {0}'.format(goal_uuid))
412412

413413
# If no goal with the requested ID exists, then return UNKNOWN status
414+
# or the goal with the requested ID has been already expired
414415
if bytes(goal_uuid) not in self._goal_handles:
415-
self._logger.debug(
416-
'Sending result response for unknown goal ID: {0}'.format(goal_uuid))
416+
self._logger.warn(
417+
'Sending result response for unknown or expired goal ID: {0}'.format(goal_uuid))
417418
result_response = self._action_type.Impl.GetResultService.Response()
418419
result_response.status = GoalStatus.STATUS_UNKNOWN
419420
self._handle.send_result_response(request_header, result_response)

0 commit comments

Comments
 (0)