Less verbose

main
Bob Mottram 2021-03-14 19:39:00 +00:00
parent a4b7b921de
commit f074349ab2
2 changed files with 4 additions and 2 deletions

View File

@ -13941,7 +13941,8 @@ class PubServer(BaseHTTPRequestHandler):
"editblogpost", "newreminder", "newevent")
for currPostType in postTypes:
if not authorized:
print('POST was not authorized')
if self.server.debug:
print('POST was not authorized')
break
postRedirect = self.server.defaultTimeline

View File

@ -2868,7 +2868,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
time.sleep(1)
if not pubKey:
print('Queue: public key could not be obtained from ' + keyId)
if debug:
print('Queue: public key could not be obtained from ' + keyId)
if os.path.isfile(queueFilename):
os.remove(queueFilename)
if len(queue) > 0: