mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing broken request introspection.
This commit is contained in:
parent
fcebadfc64
commit
1da9f57697
2 changed files with 4 additions and 4 deletions
4
Makefile
4
Makefile
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue