From 1ed2190a3beb5910b12d700f2ca454d354aca1bf Mon Sep 17 00:00:00 2001 From: 0xb00bface <0xboobface@gmail.com> Date: Fri, 1 Jan 2021 20:34:54 +0100 Subject: [PATCH] Improve logging message --- .../ctbrec/recorder/download/hls/AbstractHlsDownload.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/ctbrec/recorder/download/hls/AbstractHlsDownload.java b/common/src/main/java/ctbrec/recorder/download/hls/AbstractHlsDownload.java index ca5faec4..3ccad859 100644 --- a/common/src/main/java/ctbrec/recorder/download/hls/AbstractHlsDownload.java +++ b/common/src/main/java/ctbrec/recorder/download/hls/AbstractHlsDownload.java @@ -172,10 +172,11 @@ public abstract class AbstractHlsDownload extends AbstractDownload { } else if (e.getResponseCode() == 403) { checkIfModelIsStillOnline("Playlist access forbidden (403). Model {} probably went private or offline. Model state: {}"); } else { - LOG.info("Playlist couldn't not be downloaded for model {} {} times", model, consecutivePlaylistErrors, e); if (consecutivePlaylistErrors >= 3) { - LOG.info("Playlist couldn't not be downloaded for model {} {} times. Stopping recording", model, consecutivePlaylistErrors, e); + LOG.info("Playlist couldn't not be downloaded for model {} {} times. Stopping recording", model, (consecutivePlaylistErrors + 1), e); running = false; + } else { + LOG.info("Playlist couldn't not be downloaded for model {} {} times: {}", model, (consecutivePlaylistErrors + 1), e.getLocalizedMessage()); } } }