From 7851ccf96075812f218abd11eab22c0f97ad12cb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 29 Nov 2019 09:38:19 +0000 Subject: [PATCH] Show queue length --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 77d42189..f4536eb3 100644 --- a/daemon.py +++ b/daemon.py @@ -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]