Improve logging

This commit is contained in:
tomkat83 2016-09-11 10:36:28 +02:00
parent 3e261a75e2
commit 1370bda432

View file

@ -281,15 +281,14 @@ class ProcessFanartThread(Thread):
def run(self): def run(self):
threadStopped = self.threadStopped threadStopped = self.threadStopped
threadSuspended = self.threadSuspended threadSuspended = self.threadSuspended
queue = self.queue log.info("---===### Starting FanartSync ###===---")
log.debug('Started Fanart thread')
while not threadStopped(): while not threadStopped():
# In the event the server goes offline # In the event the server goes offline
while threadSuspended(): while threadSuspended():
# Set in service.py # Set in service.py
if threadStopped(): if threadStopped():
# Abort was requested while waiting. We should exit # Abort was requested while waiting. We should exit
log.debug('Fanart thread terminated while suspended') log.info("---===### Stopped FanartSync ###===---")
return return
xbmc.sleep(1000) xbmc.sleep(1000)
# grabs Plex item from queue # grabs Plex item from queue
@ -347,7 +346,7 @@ class ProcessFanartThread(Thread):
# signals to queue job is done # signals to queue job is done
log.debug('Done getting fanart for Plex id %s' % item['itemId']) log.debug('Done getting fanart for Plex id %s' % item['itemId'])
queue.task_done() queue.task_done()
log.debug('Fanart thread terminated') log.info("---===### Stopped FanartSync ###===---")
@ThreadMethodsAdditionalSuspend('suspend_LibraryThread') @ThreadMethodsAdditionalSuspend('suspend_LibraryThread')