Show queue length

main
Bob Mottram 2019-11-29 09:38:19 +00:00
parent 4bf127d93a
commit 7851ccf960
1 changed files with 1 additions and 1 deletions

View File

@ -845,7 +845,7 @@ class PubServer(BaseHTTPRequestHandler):
""" Check if the queue is full and remove oldest items if it is
"""
if len(self.server.inboxQueue)>=self.server.maxQueueLength:
print('Inbox queue is full. Removing oldest items.')
print('Inbox queue is full ('+str(self.server.maxQueueLength)+' items). Removing oldest items.')
cleardownStartTime=time.time()
while len(self.server.inboxQueue) >= self.server.maxQueueLength-4:
queueFilename=self.server.inboxQueue[0]