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

Add more logging info to storage and reader/writer open operations #1881

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

MichaelOrlov
Copy link
Contributor

This PR adds more logging information in cases when the reader or writer fails to open bag files.

  • Added check if storage.uri is an empty string
  • Print out a list of available storage plugins in case of failure to open a bag file
  • Print out the value of the provided storage.uri if fail to open a bag file.

@MichaelOrlov MichaelOrlov marked this pull request as ready for review December 11, 2024 01:13
@christophebedard
Copy link
Member

Looks good to me other than some minor comments.

Copy link
Contributor

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

i do not have any objections for this. lgtm with @christophebedard 's comments.

Signed-off-by: Michael Orlov <[email protected]>
@MichaelOrlov
Copy link
Contributor Author

Pulls: #1881
Gist: https://gist.githubusercontent.com/MichaelOrlov/d7c7dbb089647582fbca4052a7712f23/raw/5a2496f5d65a874725cdd150a6a6994e0af561b2/ros2.repos
BUILD args: --packages-above-and-dependencies rosbag2_cpp rosbag2_storage rosbag2_tests
TEST args: --packages-above rosbag2_cpp rosbag2_storage rosbag2_tests
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14939

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@christophebedard christophebedard merged commit 0823be2 into rolling Dec 12, 2024
12 checks passed
@christophebedard christophebedard deleted the morlov/add-more-logging-to-reader-writer branch December 12, 2024 15:03
@MichaelOrlov
Copy link
Contributor Author

https://github.com/Mergifyio backport jazzy

Copy link

mergify bot commented Dec 12, 2024

backport jazzy

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Dec 12, 2024
MichaelOrlov added a commit that referenced this pull request Dec 18, 2024
…1881) (#1882)

Signed-off-by: Michael Orlov <[email protected]>
(cherry picked from commit 0823be2)

Co-authored-by: Michael Orlov <[email protected]>
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