From fce964cc7bb6ec7309aa46984df0f4f2038e0d3f Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 18 Jul 2021 15:35:22 +0200 Subject: [PATCH] Improve logging fixup logging --- resources/lib/library_sync/fill_metadata_queue.py | 6 +++--- resources/lib/library_sync/sections.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/lib/library_sync/fill_metadata_queue.py b/resources/lib/library_sync/fill_metadata_queue.py index 6e7f717d..0f27d783 100644 --- a/resources/lib/library_sync/fill_metadata_queue.py +++ b/resources/lib/library_sync/fill_metadata_queue.py @@ -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(): diff --git a/resources/lib/library_sync/sections.py b/resources/lib/library_sync/sections.py index 481beae5..9fa67d5e 100644 --- a/resources/lib/library_sync/sections.py +++ b/resources/lib/library_sync/sections.py @@ -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')