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

driver/resources: use consistent logger names #1293

Merged

Conversation

Bastian-Krause
Copy link
Member

Description
Each driver and resource sets up their own logger in a pretty similar way. So move this functionality to the base class and generate a sane logger name there.

Checklist

  • PR has been tested (tbd)

Set the logger name to "<class>(<target>)[drivername]". This should give
us consistent logger naming.

Signed-off-by: Bastian Krause <[email protected]>
Set the logger names to "<class>[(<target>)][:<resourcename>]". This
should give us consistent logger naming.

Signed-off-by: Bastian Krause <[email protected]>
Logger names should not contain any formatting.

Signed-off-by: Bastian Krause <[email protected]>
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (7e74c8c) 63.0% compared to head (2a095c2) 62.8%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1293     +/-   ##
========================================
- Coverage    63.0%   62.8%   -0.2%     
========================================
  Files         160     160             
  Lines       11909   11865     -44     
========================================
- Hits         7505    7463     -42     
+ Misses       4404    4402      -2     
Files Coverage Δ
labgrid/driver/bareboxdriver.py 59.6% <ø> (-0.8%) ⬇️
labgrid/driver/common.py 87.5% <100.0%> (+1.7%) ⬆️
labgrid/driver/dediprogflashdriver.py 63.2% <ø> (-1.5%) ⬇️
labgrid/driver/dockerdriver.py 94.4% <ø> (-0.3%) ⬇️
labgrid/driver/externalconsoledriver.py 80.8% <ø> (-0.6%) ⬇️
labgrid/driver/fake.py 81.9% <ø> (-0.6%) ⬇️
labgrid/driver/flashromdriver.py 63.6% <ø> (-1.6%) ⬇️
labgrid/driver/flashscriptdriver.py 93.1% <ø> (-0.9%) ⬇️
labgrid/driver/openocddriver.py 75.7% <ø> (-0.8%) ⬇️
labgrid/driver/qemudriver.py 68.9% <ø> (-0.8%) ⬇️
... and 18 more

... and 1 file with indirect coverage changes

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

@jluebbe jluebbe merged commit adb7ade into labgrid-project:master Dec 15, 2023
7 of 9 checks passed
@Bastian-Krause Bastian-Krause deleted the bst/make-loggers-consistent branch May 29, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants