From e36656dc81ac95993e7ab18a0cf6c78bcffb5daf 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 903301fe..57f64ff4 100644 --- a/resources/lib/library_sync/fill_metadata_queue.py +++ b/resources/lib/library_sync/fill_metadata_queue.py @@ -57,12 +57,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 3a206351..affdaebb 100644 --- a/resources/lib/library_sync/sections.py +++ b/resources/lib/library_sync/sections.py @@ -92,6 +92,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)