Skip to content

Commit

Permalink
Issue: AAP-29982 enable middleware to log traceback on timeout
Browse files Browse the repository at this point in the history
gunicorn sends a signal 6 when it is about to timeout a request
This middleware handles that request and logs a traceback.

this aids in debugging infrastructure issues that may be causing
requests to timeout.
  • Loading branch information
kdelee committed Sep 18, 2024
1 parent 32fe176 commit 1025cc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions galaxy_ng/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
'django.middleware.locale.LocaleMiddleware',
'django_guid.middleware.guid_middleware',
'pulpcore.middleware.DomainMiddleware',
'ansible_base.lib.middleware.logging.log_request.LogTracebackMiddleware',
# END: Pulp standard middleware
'django_prometheus.middleware.PrometheusAfterMiddleware',
]
Expand Down

0 comments on commit 1025cc3

Please sign in to comment.