Skip to content
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

Merged
merged 2 commits into from
Aug 5, 2018
Merged

Conversation

iory
Copy link
Member

@iory iory commented Aug 2, 2018

In this PR,
default of diagnostic error level have been mistakenly changed to warn.
This PR fixes warn level.

@iory iory requested a review from furushchev August 2, 2018 10:40
Copy link
Member

@furushchev furushchev left a 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;
Copy link
Member

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.

Copy link
Member Author

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

Copy link
Member

@furushchev furushchev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Now LGTM.

@iory
Copy link
Member Author

iory commented Aug 4, 2018

Please merge this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants