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

Create and use a log handler to actually set log level #188

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

shrik450
Copy link
Collaborator

Previously, the log_level argument to AllSpice didn't actually do anything. Since the logger doesn't have a specified handler, it falls back to the root logger which does not respect the result of setLogLevel. This commit actually creates a handler for the allspice client's logger, which enables setLogLevel to actually work.

Previously, the `log_level` argument to `AllSpice` didn't actually do
anything. Since the logger doesn't have a specified handler, it falls
back to the root logger which does not respect the result of
`setLogLevel`. This commit actually creates a handler for the allspice
client's logger, which enables `setLogLevel` to actually work.
@shrik450 shrik450 requested a review from a team as a code owner October 16, 2024 16:22
Copy link

Coverage Summary

Total Project Coverage

  • Line Coverage: 86.92% (2047/2355)
  • Branch Coverage: 71.76% (432/602)

Coverage by File

File Line Coverage Branch Coverage Lines (Covered/Total) Branches (Covered/Total)
allspice/__init__.py 100.00% 100.00% 5/5 0/0
allspice/allspice.py 81.78% 68.42% 175/214 52/76
allspice/apiobject.py 83.58% 46.35% 1033/1236 89/192
allspice/baseapiobject.py 85.29% 75.00% 87/102 24/32
allspice/exceptions.py 100.00% 100.00% 14/14 0/0
allspice/ratelimiter.py 100.00% 100.00% 22/22 4/4
allspice/utils/__init__.py 100.00% 100.00% 0/0 0/0
allspice/utils/bom_generation.py 100.00% 100.00% 112/112 40/40
allspice/utils/core.py 94.12% 50.00% 16/17 1/2
allspice/utils/list_components.py 92.06% 86.89% 533/579 212/244
allspice/utils/netlist_generation.py 92.59% 83.33% 50/54 10/12

Diff Coverage

Diff: origin/main...HEAD, staged and unstaged changes

  • allspice/allspice.py (100%)

Summary

  • Total: 4 lines
  • Missing: 0 lines
  • Coverage: 100%

@shrik450 shrik450 merged commit f5ff6fb into main Feb 6, 2025
4 checks passed
@shrik450 shrik450 deleted the su/actual-logging branch February 6, 2025 22:21
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