Additional logging for emails

This commit is contained in:
Ozzie Isaacs
2021-04-22 19:14:56 +02:00
parent c0b2e886d2
commit 450ee43677
4 changed files with 17 additions and 7 deletions
+2 -1
View File
@@ -45,7 +45,7 @@ class ImprovedQueue(queue.Queue):
with self.mutex:
return list(self.queue)
#Class for all worker tasks in the background
# Class for all worker tasks in the background
class WorkerThread(threading.Thread):
_instance = None
@@ -69,6 +69,7 @@ class WorkerThread(threading.Thread):
def add(cls, user, task):
ins = cls.getInstance()
ins.num += 1
log.debug("Add Task for user: {}: {}".format(user, task))
ins.queue.put(QueuedTask(
num=ins.num,
user=user,