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

Fix modified logger in add_file_handler, add tests #649

Merged
merged 2 commits into from
May 24, 2024

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented May 24, 2024

It appears that the logger parameter was previously unused, and that the function just used colcon_logger directly. As it happens, the only use of add_file_handler passes colcon_logger, so the mistake had no effect.

This fixes the bug and adds a simple test for that code.

It appears that the `logger` parameter was previously unused, and that
the function just used `colcon_logger` directly. As it happens, the only
use of `add_file_handler` passes `colcon_logger`, so the mistake had no
effect.

This fixes the bug and adds a simple test for that code.
@cottsay cottsay added the bug Something isn't working label May 24, 2024
@cottsay cottsay self-assigned this May 24, 2024
Copy link

codecov bot commented May 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.49%. Comparing base (b174608) to head (5cdb6c0).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #649      +/-   ##
==========================================
+ Coverage   83.43%   83.49%   +0.05%     
==========================================
  Files          66       66              
  Lines        3816     3816              
  Branches      745      745              
==========================================
+ Hits         3184     3186       +2     
+ Misses        555      554       -1     
+ Partials       77       76       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cottsay cottsay merged commit a067589 into master May 24, 2024
36 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cottsay/logging-file branch May 24, 2024 18:16
@cottsay cottsay added this to the 0.16.2 milestone Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants