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

enh: Also raise error if log_level is above default #7766

Merged
merged 2 commits into from
Mar 7, 2025

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Mar 7, 2025

It can be hard to debug why something is failing with die. This makes it so that when you have a higher log level than the default, it will raise the exception.

Default is WARNING:

panel/panel/config.py

Lines 261 to 263 in 321d116

_log_level = param.Selector(
default='WARNING', objects=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
doc="Log level of Panel loggers")

Copy link

codecov bot commented Mar 7, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 87.10%. Comparing base (2f5347e) to head (9babc81).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
panel/command/__init__.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7766      +/-   ##
==========================================
+ Coverage   86.09%   87.10%   +1.01%     
==========================================
  Files         346      346              
  Lines       52790    52790              
==========================================
+ Hits        45449    45985     +536     
+ Misses       7341     6805     -536     

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@philippjfr philippjfr merged commit 5144606 into main Mar 7, 2025
18 checks passed
@philippjfr philippjfr deleted the raise_error_if_loglevel branch March 7, 2025 17:54
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.

2 participants