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

Ensure logging is initialized only once #518

Merged

Conversation

ivanpauno
Copy link
Member

Connects to ros2/rcl#579.
Connects to ros2/rclcpp#998.

@ivanpauno ivanpauno added the in review Waiting for review (Kanban column) label Mar 3, 2020
@ivanpauno ivanpauno requested a review from wjwwood March 3, 2020 19:52
@ivanpauno ivanpauno self-assigned this Mar 3, 2020
@ivanpauno ivanpauno requested a review from hidmic March 4, 2020 14:05
@ivanpauno ivanpauno force-pushed the ivanpauno/move-logging-configure-fini-to-upper-layer branch from 699bf4b to 0d9c49c Compare March 5, 2020 14:32
@ivanpauno
Copy link
Member Author

Rebased after #497 went in.

@ivanpauno
Copy link
Member Author

CI jobs in ros2/rcl#579 (comment).

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
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/rclpy/context.py Outdated Show resolved Hide resolved
rclpy/rclpy/context.py Outdated Show resolved Hide resolved
rclpy/src/rclpy/_rclpy.c Outdated Show resolved Hide resolved
rclpy/rclpy/context.py Show resolved Hide resolved
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno merged commit fe68a6c into master Apr 23, 2020
@delete-merged-branch delete-merged-branch bot deleted the ivanpauno/move-logging-configure-fini-to-upper-layer branch April 23, 2020 20:34
@@ -73,6 +85,7 @@ def shutdown(self):
with self._handle as capsule, self._lock:
rclpy_implementation.rclpy_shutdown(capsule)
self._call_on_shutdown_callbacks()
self._logging_fini()
Copy link
Member

Choose a reason for hiding this comment

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

@ivanpauno any idea why this is not called from try_shutdown() as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, I guess that was only a mistake.

Copy link
Member Author

Choose a reason for hiding this comment

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

#800 should fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in review Waiting for review (Kanban column)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants