Skip to content

Commit

Permalink
reduce logs
Browse files Browse the repository at this point in the history
  • Loading branch information
marioney committed May 1, 2021
1 parent 03c13f6 commit 0f1b05d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mros1_reasoner/src/mros1_reasoner/ros_reasoner.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,30 +226,30 @@ def callbackDiagnostics(self, msg):
.format(diagnostic_status.values[0].key,
diagnostic_status.values[0].value))
else:
rospy.logwarn("Unsupported CS Message received: %s ",
rospy.logdebug("Unsupported CS Message received: %s ",
str(diagnostic_status.values[0].key))

# QA Status update
elif diagnostic_status.message == "QA status":
rospy.loginfo(
"QA value received for: {0}\tTYPE: {1}\tVALUE: {2}"
.format(diagnostic_status.name,
diagnostic_status.values[0].key,
diagnostic_status.values[0].value))
# rospy.loginfo(
# "QA value received for: {0}\tTYPE: {1}\tVALUE: {2}"
# .format(diagnostic_status.name,
# diagnostic_status.values[0].key,
# diagnostic_status.values[0].value))

up_qa = self.reasoner.updateQA(diagnostic_status)
if up_qa == -1:
rospy.logwarn("No FG found - Discarding QA message")
elif up_qa == 1:
rospy.loginfo(
rospy.logdebug(
"QA value received!\tTYPE: {0}\tVALUE: {1}"
.format(diagnostic_status.values[0].key,
diagnostic_status.values[0].value))
else:
rospy.logwarn("Unsupported QA TYPE received: {}"
.format(diagnostic_status.values[0].key))
else:
rospy.logwarn("Unsupported Message received: {}"
rospy.logdebug("Unsupported Message received: {}"
.format(diagnostic_status.message))

# for MVP with QAs - request the FD.name to reconfigure to
Expand Down

0 comments on commit 0f1b05d

Please sign in to comment.