Added interface logging of queueErrors

This commit is contained in:
RemixDev 2020-10-14 23:21:13 +02:00
parent a6f5b75577
commit 2fdce7d137
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ class QueueManager:
def processQueueItem(item, silent=False): def processQueueItem(item, silent=False):
if isinstance(item, QueueError): if isinstance(item, QueueError):
logger.error(f"[{item.link}] {item.message}") logger.error(f"[{item.link}] {item.message}")
if interface and not silent: interface.send("queueError", item.toDict()) if interface: interface.send("queueError", item.toDict())
return False return False
if item.uuid in list(self.queueList.keys()): if item.uuid in list(self.queueList.keys()):
logger.warn(f"[{item.uuid}] Already in queue, will not be added again.") logger.warn(f"[{item.uuid}] Already in queue, will not be added again.")