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