From 05a969366196152f4eb1c642469b68659faea8f5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 12 Nov 2019 13:53:14 +0000 Subject: [PATCH] Separate conditions for better debug --- daemon.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index dbcfc190..bec8f2e0 100644 --- a/daemon.py +++ b/daemon.py @@ -2901,8 +2901,16 @@ class PubServer(BaseHTTPRequestHandler): This creates a thread to send the new post """ pageNumber=1 - if not (authorized and '/users/' in path and '?'+postType+'?' in path): - print('Not receiving new post for '+path) + if not authorized: + print('Not receiving new post for '+path+' because not authorized') + return None + + if '/users/' not in path: + print('Not receiving new post for '+path+' because /users/ not in path') + return None + + if '?'+postType+'?' not in path: + print('Not receiving new post for '+path+' because ?'+postType+'? not in path') return None print('New post begins: '+postType+' '+path)