More debug

master
Bob Mottram 2019-08-15 17:19:07 +01:00
parent 4d34d8a3f6
commit 5b434cad65
1 changed files with 4 additions and 0 deletions

View File

@ -980,6 +980,8 @@ def restoreQueueItems(baseDir: str,queue: []) -> None:
for queuesubdir,queuedirs,queuefiles in os.walk(queueDir): for queuesubdir,queuedirs,queuefiles in os.walk(queueDir):
for qfile in queuefiles: for qfile in queuefiles:
queue.append(os.path.join(queueDir, qfile)) queue.append(os.path.join(queueDir, qfile))
if len(queue)>0:
print('Restored '+len(queue)+' inbox queue items')
def runInboxQueue(projectVersion: str, \ def runInboxQueue(projectVersion: str, \
baseDir: str,httpPrefix: str,sendThreads: [],postLog: [], \ baseDir: str,httpPrefix: str,sendThreads: [],postLog: [], \
@ -1087,6 +1089,8 @@ def runInboxQueue(projectVersion: str, \
if accountMaxPostsPerDay>0 or domainMaxPostsPerDay>0: if accountMaxPostsPerDay>0 or domainMaxPostsPerDay>0:
pprint(quotas) pprint(quotas)
print('Obtaining public key for '+queueJson['id'])
# Try a few times to obtain the public key # Try a few times to obtain the public key
pubKey=None pubKey=None
keyId=None keyId=None