-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[jsk_topic_tools] Fixed use_warn option #1592
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm very sorry and nice catch!
I added a comment. Please check.
@@ -61,7 +61,7 @@ namespace jsk_topic_tools | |||
if (pnh_->hasParam("use_warn")) { | |||
pnh_->getParam("use_warn", use_warn); | |||
} | |||
if (use_warn) | |||
if (use_warn == false) | |||
{ | |||
diagnostic_error_level_ = diagnostic_msgs::DiagnosticStatus::ERROR; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for swapping ERROR
and WARN
is preferred for readability instead of use_warn == false
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I revised it based on review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Now LGTM.
Please merge this. |
In this PR,
default of diagnostic error level have been mistakenly changed to
warn
.This PR fixes warn level.