Fixing broken request introspection.

This commit is contained in:
Samuel Clay 2021-02-24 12:07:44 -05:00
parent fcebadfc64
commit 1da9f57697
2 changed files with 4 additions and 4 deletions

View file

@ -74,7 +74,7 @@ images:
# Tasks
deploy:
- docker stack deploy --with-registry-auth -c stack-compose.yml dev-stack
- ansible-playbook ansible/deploy_app.yml
firewall:
- ansible-playbook ansible/provision.yml --tags firewall -l db
@ -88,4 +88,4 @@ perf-ui:
perf-docker:
- docker build . --file=./perf/Dockerfile --tag=perf-docker
- docker run -it -p 8089:8089 perf-docker locust -f locust.py
- docker run -it -p 8089:8089 perf-docker locust -f locust.py

View file

@ -9,8 +9,8 @@ class DumpRequestMiddleware:
def process_request(self, request):
if settings.DEBUG and request.path not in IGNORE_PATHS:
request_data = request.POST or request.GET
request_items = request_data.items()
if len(request_items):
request_items = dict(request_data).items()
if request_items:
logging.debug(" ---> ~FC%s ~SN~FK~BC%s~BT~ST ~FC%s~BK~FC" % (request.method, request.path, dict(request_items)))
else:
logging.debug(" ---> ~FC%s ~SN~FK~BC%s~BT~ST" % (request.method, request.path))