Skip to content

Strawberry debug toolbar must not be enabled in non-debug mode #17410

@abhi1693

Description

@abhi1693

Deployment Type

Self-hosted

NetBox Version

v4.1.0

Python Version

3.12

Steps to Reproduce

Go to settings.py and notice that strawberry_django.middlewares.debug_toolbar.DebugToolbarMiddleware is in the middleware always enabled

Expected Behavior

strawberry_django.middlewares.debug_toolbar.DebugToolbarMiddleware must only be enabled in debug mode

Observed Behavior

strawberry_django.middlewares.debug_toolbar.DebugToolbarMiddleware is called during every request to netbox

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions