More debug

merge-requests/6/head
Bob Mottram 2020-01-13 12:45:27 +00:00
parent 5bc7b515c9
commit 18dfbf6e3b
1 changed files with 15 additions and 2 deletions

View File

@ -65,8 +65,21 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \
messageJson.get('actor') and \
messageJson.get('object') and \
messageJson.get('to')):
if debug:
print('DEBUG: POST to outbox - Create does not have the required parameters')
if not messageJson.get('id'):
if debug:
print('DEBUG: POST to outbox - Create does not have the id parameter '+str(messageJson))
elif not messageJson.get('id'):
if debug:
print('DEBUG: POST to outbox - Create does not have the type parameter '+str(messageJson))
elif not messageJson.get('id'):
if debug:
print('DEBUG: POST to outbox - Create does not have the actor parameter '+str(messageJson))
elif not messageJson.get('id'):
if debug:
print('DEBUG: POST to outbox - Create does not have the object parameter '+str(messageJson))
else:
if debug:
print('DEBUG: POST to outbox - Create does not have the "to" parameter '+str(messageJson))
return False
testDomain,testPort=getDomainFromActor(messageJson['actor'])
if testPort: