More debug

merge-requests/6/head
Bob Mottram 2020-02-04 20:11:19 +00:00
parent 972727cc8b
commit 42b0e03497
1 changed files with 24 additions and 13 deletions

View File

@ -211,15 +211,19 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \
messageJson,debug, \
version)
followersThreads.append(followersThread)
if debug:
print('DEBUG: handle any unfollow requests')
outboxUndoFollow(baseDir,messageJson,debug)
if debug:
print('DEBUG: handle delegation requests')
outboxDelegate(baseDir,postToNickname,messageJson,debug)
if debug:
print('DEBUG: handle skills changes requests')
outboxSkills(baseDir,postToNickname,messageJson,debug)
if debug:
print('DEBUG: handle availability changes requests')
outboxAvailability(baseDir,postToNickname,messageJson,debug)
@ -255,37 +259,44 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \
postToNickname,domain, \
messageJson,debug, \
allowDeletion)
if debug:
print('DEBUG: handle block requests')
outboxBlock(baseDir,httpPrefix, \
postToNickname,domain, \
port,
messageJson,debug)
if debug:
print('DEBUG: handle undo block requests')
outboxUndoBlock(baseDir,httpPrefix, \
postToNickname,domain, \
port,
messageJson,debug)
if debug:
print('DEBUG: handle share uploads')
outboxShareUpload(baseDir,httpPrefix, \
postToNickname,domain, \
port,
messageJson,debug)
if debug:
print('DEBUG: handle undo share uploads')
outboxUndoShareUpload(baseDir,httpPrefix, \
postToNickname,domain, \
port,
messageJson,debug)
if debug:
print('DEBUG: sending c2s post to named addresses')
print('c2s sender: '+postToNickname+'@'+ \
domain+':'+str(port))
if messageJson.get('to'):
print('c2s sender: '+postToNickname+'@'+domain+':'+str(port)+ \
' recipient: '+messageJson['to'])
else:
print('c2s sender: '+postToNickname+'@'+domain+':'+str(port))
sendToNamedAddresses(server.session,baseDir, \
postToNickname,domain, \
port, \
postToNickname,domain,port, \
httpPrefix, \
federationList, \
sendThreads, \