Skip to content

Commit

Permalink
Added Django request logging capabilities for mailman-web
Browse files Browse the repository at this point in the history
Added the django-request-logging package to mailman-web to assist when
necessary with debugging by being able to easily log the requests
recevied by the mailman-web service.
  • Loading branch information
skoranda committed Nov 11, 2019
1 parent f40e11e commit 070aff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions comanage-registry-mailman/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ RUN apt-get update \
mysqlclient \
typing \
xapian-haystack \
django-request-logging \
&& adduser --system --no-create-home --group mailman

COPY django-mail-header /tmp/django-mail-header
Expand Down
1 change: 1 addition & 0 deletions comanage-registry-mailman/web/mailman-web/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
'django.middleware.security.SecurityMiddleware',
'django_mailman3.middleware.TimezoneMiddleware',
'postorius.middleware.PostoriusMiddleware',
'request_logging.middleware.LoggingMiddleware',
)

# Use old-style Middleware class in Python 2 and released versions of
Expand Down

0 comments on commit 070aff9

Please sign in to comment.