mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-21 05:45:13 +00:00
Moving up ignore path.
This commit is contained in:
parent
3f75df76b6
commit
fcebadfc64
1 changed files with 3 additions and 3 deletions
|
@ -7,12 +7,12 @@ IGNORE_PATHS = [
|
|||
|
||||
class DumpRequestMiddleware:
|
||||
def process_request(self, request):
|
||||
if settings.DEBUG:
|
||||
if settings.DEBUG and request.path not in IGNORE_PATHS:
|
||||
request_data = request.POST or request.GET
|
||||
request_items = request_data.items()
|
||||
if request_items:
|
||||
if len(request_items):
|
||||
logging.debug(" ---> ~FC%s ~SN~FK~BC%s~BT~ST ~FC%s~BK~FC" % (request.method, request.path, dict(request_items)))
|
||||
elif request.path not in IGNORE_PATHS:
|
||||
else:
|
||||
logging.debug(" ---> ~FC%s ~SN~FK~BC%s~BT~ST" % (request.method, request.path))
|
||||
|
||||
def __init__(self, get_response=None):
|
||||
|
|
Loading…
Add table
Reference in a new issue