More debug

master
Bob Mottram 2019-08-16 19:32:26 +01:00
parent db3ecc9511
commit 8332f9dae9
1 changed files with 9 additions and 5 deletions

View File

@ -2632,7 +2632,7 @@ class PubServer(BaseHTTPRequestHandler):
'/users/' in self.path: '/users/' in self.path:
if not self.outboxAuthenticated: if not self.outboxAuthenticated:
if self.server.debug: if self.server.debug:
print('DEBUG: unathenticated attempt to post image to outbox') print('DEBUG: unauthenticated attempt to post image to outbox')
self.send_response(403) self.send_response(403)
self.end_headers() self.end_headers()
self.server.POSTbusy=False self.server.POSTbusy=False
@ -2698,6 +2698,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.POSTbusy=False self.server.POSTbusy=False
return return
else: else:
if self.server.debug:
print('Failed to post to outbox')
self.send_response(403) self.send_response(403)
self.end_headers() self.end_headers()
self.server.POSTbusy=False self.server.POSTbusy=False
@ -2762,6 +2764,8 @@ class PubServer(BaseHTTPRequestHandler):
self.end_headers() self.end_headers()
self.server.POSTbusy=False self.server.POSTbusy=False
return return
if self.server.debug:
print('Unknown status from _updateInboxQueue')
else: else:
if self.server.debug: if self.server.debug:
print('self.postToNickname is None') print('self.postToNickname is None')