mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
10 lines
No EOL
416 B
Python
10 lines
No EOL
416 B
Python
from django.conf import settings
|
|
from utils import log as logging
|
|
|
|
class DumpRequestMiddleware:
|
|
def process_request(self, request):
|
|
if settings.DEBUG:
|
|
request_data = request.POST or request.GET
|
|
request_items = request_data.items()
|
|
if request_items:
|
|
logging.debug(" ---> ~FC%s ~SN~FC%s ~SN~BC~FK%s" % (request.method, request.path, dict(request_items))) |