Improve logging
This commit is contained in:
parent
3e261a75e2
commit
1370bda432
1 changed files with 3 additions and 4 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue