More debug

main
Bob Mottram 2020-05-22 11:35:33 +00:00
parent e75f1a0abb
commit b749b37187
1 changed files with 3 additions and 0 deletions

View File

@ -2220,8 +2220,11 @@ def restoreQueueItems(baseDir: str, queue: []) -> None:
for account in dirs:
queueDir = baseDir + '/accounts/' + account + '/queue'
if os.path.isdir(queueDir):
print('Searching inbox queue ' + queueDir)
for queuesubdir, queuedirs, queuefiles in os.walk(queueDir):
for qfile in queuefiles:
print('Adding inbox queue file ' +
os.path.join(queueDir, qfile))
queue.append(os.path.join(queueDir, qfile))
if len(queue) > 0:
print('Restored ' + str(len(queue)) + ' inbox queue items')