Improve logging

fixup logging
This commit is contained in:
croneter 2021-07-18 15:35:22 +02:00
parent 7553061945
commit fce964cc7b
2 changed files with 4 additions and 3 deletions

View File

@ -58,12 +58,12 @@ class FillMetadataQueue(common.LibrarySyncMixin,
if not do_process_section:
do_process_section = True
self.processing_queue.add_section(section)
LOG.debug('Put section in queue with %s items: %s',
section.number_of_items, section)
LOG.debug('Put section in processing queue: %s', section)
# We might have received LESS items from the PMS than anticipated.
# Ensures that our queues finish
LOG.debug('%s items to process for section %s', count, section)
section.number_of_items = count
LOG.debug('%s items to process for section %s',
section.number_of_items, section)
def _run(self):
while not self.should_cancel():

View File

@ -93,6 +93,7 @@ class Section(object):
"'name': '{self.name}', "
"'section_id': {self.section_id}, "
"'section_type': '{self.section_type}', "
"'plex_type': '{self.plex_type}', "
"'sync_to_kodi': {self.sync_to_kodi}, "
"'last_sync': {self.last_sync}"
"}}").format(self=self).encode('utf-8')