forked from j62/ctbrec
1
0
Fork 0

Improve logging message

This commit is contained in:
0xb00bface 2021-01-01 20:34:54 +01:00
parent 52f10c9fa7
commit 1ed2190a3b
1 changed files with 3 additions and 2 deletions

View File

@ -172,10 +172,11 @@ public abstract class AbstractHlsDownload extends AbstractDownload {
} else if (e.getResponseCode() == 403) { } else if (e.getResponseCode() == 403) {
checkIfModelIsStillOnline("Playlist access forbidden (403). Model {} probably went private or offline. Model state: {}"); checkIfModelIsStillOnline("Playlist access forbidden (403). Model {} probably went private or offline. Model state: {}");
} else { } else {
LOG.info("Playlist couldn't not be downloaded for model {} {} times", model, consecutivePlaylistErrors, e);
if (consecutivePlaylistErrors >= 3) { 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; running = false;
} else {
LOG.info("Playlist couldn't not be downloaded for model {} {} times: {}", model, (consecutivePlaylistErrors + 1), e.getLocalizedMessage());
} }
} }
} }