Skip to content

Make the log level for the request middleware fully configurable#1024

Open
offbyone wants to merge 1 commit intojrobichaud:mainfrom
offbyone:push-tkpuvxrrvkvu
Open

Make the log level for the request middleware fully configurable#1024
offbyone wants to merge 1 commit intojrobichaud:mainfrom
offbyone:push-tkpuvxrrvkvu

Conversation

@offbyone
Copy link
Copy Markdown

@offbyone offbyone commented Apr 26, 2026

  • adds STATUS_DEFAULT_LOG_LEVEL, STATUS_START_LOG_LEVEL, and STATUS_2XX_LOG_LEVEL app settings
  • adds CELERY_DEFAULT_LOG_LEVEL, CELERY_TASK_START_LOG_LEVEL, CELERY_TASK_SUCCESS_LOG_LEVEL, CELERY_TASK_NOTICE_LOG_LEVEL, CELERY_TASK_FAILURE_LOG_LEVEL, CELERY_TASK_ERROR_LOG_LEVEL
  • uses settings to determine the log level for all non-exception path logging in the request middleware

Fixes #1022

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (dd60535) to head (1993781).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1024   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           51        51           
  Lines         2228      2272   +44     
  Branches        35        36    +1     
=========================================
+ Hits          2228      2272   +44     

☔ 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.

Copy link
Copy Markdown
Owner

@jrobichaud jrobichaud left a comment

Choose a reason for hiding this comment

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

Please remove the uv.lock.

Also fix the coverage and linter issues.

- adds `STATUS_DEFAULT_LOG_LEVEL`, `STATUS_START_LOG_LEVEL`, and `STATUS_2XX_LOG_LEVEL` app settings
- adds `CELERY_DEFAULT_LOG_LEVEL`, `CELERY_TASK_START_LOG_LEVEL`, `CELERY_TASK_SUCCESS_LOG_LEVEL`, `CELERY_TASK_NOTICE_LOG_LEVEL`, `CELERY_TASK_FAILURE_LOG_LEVEL`, `CELERY_TASK_ERROR_LOG_LEVEL`
- uses settings to determine the log level for all non-exception path logging in the request middleware

Fixes jrobichaud#1022
@offbyone offbyone force-pushed the push-tkpuvxrrvkvu branch from 5a88e67 to 1993781 Compare May 3, 2026 23:03
@offbyone
Copy link
Copy Markdown
Author

offbyone commented May 3, 2026

I think it's done -- the tests are really noisy locally, but I think I confirmed this.

@offbyone offbyone requested a review from jrobichaud May 3, 2026 23:05
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.

Allow configuring log levels for built-in request/celery lifecycle events

2 participants