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

Make use of rcutils log severity defined enum instead of duplicating code #468

Merged
merged 2 commits into from
Nov 27, 2019

Conversation

BMarchi
Copy link
Contributor

@BMarchi BMarchi commented Nov 26, 2019

Follow up of #458. Remove log severity hard coded and copied values from rcutils

…code

Signed-off-by: Brian Ezequiel Marchi <brian.marchi65@gmail.com>
@BMarchi
Copy link
Contributor Author

BMarchi commented Nov 27, 2019

  • Linux Build Status
  • Arch Build Status
  • macOS Build Status
  • Windows Build Status

Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

LGTM

rclpy/src/rclpy/_rclpy_logging.c Outdated Show resolved Hide resolved
Signed-off-by: Brian Ezequiel Marchi <brian.marchi65@gmail.com>
@BMarchi BMarchi requested a review from hidmic November 27, 2019 13:33
@dirk-thomas
Copy link
Member

The patch is fine for now.

I am still worried that this will get us further away from being able to import rclpy modules side effect free (see #420). But that shouldn't hold up this PR.

@BMarchi BMarchi merged commit d375c84 into master Nov 27, 2019
@BMarchi BMarchi deleted the BMarchi/remove_severity_code_duplication branch November 27, 2019 21:18
@hidmic
Copy link
Contributor

hidmic commented Nov 27, 2019

I am still worried that this will get us further away from being able to import rclpy modules side effect free (see #420). But that shouldn't hold up this PR.

Yes, I remember the ticket and the discussions. Thanks for bumping that one up. I also recall that most variations trying to circumvent the problem weren't great either. It'd be good if we could spend the time to really solve the problem i.e. C extensions need not be special, it's a trap to make them so.

suab321321 pushed a commit to suab321321/rclpy that referenced this pull request Jan 31, 2020
…code (ros2#468)

* Make use of rcutils log severity defined enum instead of duplicating code

Signed-off-by: Brian Ezequiel Marchi <brian.marchi65@gmail.com>
Signed-off-by: AbhinavSingh <singhabhinav9051571833@gmail.com>
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.

4 participants