From 28c99cf17f05b6873f8bbb0f1575b84f4acc1d47 Mon Sep 17 00:00:00 2001 From: jflattery <6561797+jflattery@users.noreply.github.com> Date: Wed, 20 Apr 2022 17:35:15 +0000 Subject: [PATCH] Increase readability of logs Add podcast title to log output when autodownload fails --- server/managers/PodcastManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/managers/PodcastManager.js b/server/managers/PodcastManager.js index 67391c5a..313459af 100644 --- a/server/managers/PodcastManager.js +++ b/server/managers/PodcastManager.js @@ -168,12 +168,12 @@ class PodcastManager { async checkPodcastForNewEpisodes(podcastLibraryItem) { if (!podcastLibraryItem.media.metadata.feedUrl) { - Logger.error(`[PodcastManager] checkPodcastForNewEpisodes no feed url for item ${podcastLibraryItem.id} - disabling auto download`) + Logger.error(`[PodcastManager] checkPodcastForNewEpisodes no feed url for ${podcastLibraryItem.media.metadata.title} (ID: ${podcastLibraryItem.id}) - disabling auto download`) return false } var feed = await this.getPodcastFeed(podcastLibraryItem.media.metadata.feedUrl) if (!feed || !feed.episodes) { - Logger.error(`[PodcastManager] checkPodcastForNewEpisodes invalid feed payload ${podcastLibraryItem.id} - disabling auto download`) + Logger.error(`[PodcastManager] checkPodcastForNewEpisodes invalid feed payload for ${podcastLibraryItem.media.metadata.title} (ID: ${podcastLibraryItem.id}) - disabling auto download`) return false } // Filter new and not already has