Only show failed http signatures in debug mode

main
Bob Mottram 2021-02-14 20:41:11 +00:00
parent 0c1ad3ecde
commit 01385fbdfe
1 changed files with 4 additions and 1 deletions

View File

@ -2736,6 +2736,7 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
debug):
httpSignatureFailed = True
print('Queue: Header signature check failed')
if debug:
pprint(queueJson['httpHeaders'])
else:
if debug:
@ -2770,6 +2771,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
else:
print('Queue: Header signature check failed and ' +
'does not have jsonld signature')
if debug:
pprint(queueJson['httpHeaders'])
if verifyAllSignatures:
print('Queue: inbox post does not have a jsonld signature ' +