Improve logging

This commit is contained in:
0xb00bface 2021-01-01 16:39:42 +01:00
parent e0dbb0eea7
commit 3c25a41e3a
1 changed files with 2 additions and 1 deletions

View File

@ -172,8 +172,9 @@ 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 {}. Stopping recording", model, e);
LOG.info("Playlist couldn't not be downloaded for model {} {} times. Stopping recording", model, consecutivePlaylistErrors, e);
running = false;
}
}