From 01385fbdfeeadb3cb97e7a10086423de0f805749 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 14 Feb 2021 20:41:11 +0000 Subject: [PATCH] Only show failed http signatures in debug mode --- inbox.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 5f8601502..8f216e1c6 100644 --- a/inbox.py +++ b/inbox.py @@ -2736,7 +2736,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int, debug): httpSignatureFailed = True print('Queue: Header signature check failed') - pprint(queueJson['httpHeaders']) + if debug: + pprint(queueJson['httpHeaders']) else: if debug: print('DEBUG: http header signature check success') @@ -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 ' +