selfcheck.py: show error when exception occurred in check

This commit is contained in:
Oleg Kalachev
2019-05-07 23:46:02 +03:00
parent 5b617d91a9
commit 064e402a2d

View File

@@ -48,7 +48,7 @@ def check(name):
for f in failures:
rospy.logwarn('%s: %s', name, f)
traceback.print_exc()
rospy.logwarn('%s: exception occurred', name)
rospy.logerr('%s: exception occurred', name)
return
if not failures:
rospy.loginfo('%s: OK', name)