ROS communications-related packages, including core client libraries (roscpp, rospy, roslisp) and graph introspection tools (rostopic, rosnode, rosservice, rosparam).
747
stars
914
forks
source link
Log format of service exception handler #2321
Open
destroy314 opened 1 year ago
When an exception raised in callback function of a service ,this function will log it to rosout:
https://github.com/ros/ros_comm/blob/842f0f026924323f605495da0b80493f15f0bdce/clients/rospy/src/rospy/impl/tcpros_service.py#L581-L582
However the return value of
traceback.format_exception()
is a list which cause it's hard to read the traceback message:Can we use
''.join()
ortraceback.format_exc()
like the code below to get a better format?https://github.com/ros/ros_comm/blob/842f0f026924323f605495da0b80493f15f0bdce/clients/rospy/src/rospy/topics.py#L753