From b91888f2ae857abe211efa0a83796b1b133ba011 Mon Sep 17 00:00:00 2001 From: 0xboobface <0xboobface@gmail.com> Date: Fri, 7 Sep 2018 16:46:49 +0200 Subject: [PATCH] Improve logging messages --- .../java/ctbrec/recorder/download/MergedHlsDownload.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/ctbrec/recorder/download/MergedHlsDownload.java b/src/main/java/ctbrec/recorder/download/MergedHlsDownload.java index 6770e1c5..47c48fd4 100644 --- a/src/main/java/ctbrec/recorder/download/MergedHlsDownload.java +++ b/src/main/java/ctbrec/recorder/download/MergedHlsDownload.java @@ -88,9 +88,7 @@ public class MergedHlsDownload extends AbstractHlsDownload { int seq = lsp.seq; for (int i = nextSegment; i < lsp.seq; i++) { URL segmentUrl = new URL(first.replaceAll(Integer.toString(seq), Integer.toString(i))); - LOG.debug("Reloading segment {} for model {}", i, model.getName()); - // FIXME this does not work with the current mechanism, since the InputStreams for these segments would be added - // to the mergeQueue in the wrong spot (after successors of these segments -> wrong order) + LOG.debug("Loading missed segment {} for model {}", i, model.getName()); Future downloadFuture = downloadThreadPool.submit(new SegmentDownload(segmentUrl, client)); mergeQueue.add(downloadFuture); } @@ -157,7 +155,7 @@ public class MergedHlsDownload extends AbstractHlsDownload { multiSource.addSource(source); } catch (InterruptedException e) { if(running) { - LOG.error("Error while waiting for a download future", e); + LOG.error("Interrupted while waiting for a download future", e); } } catch (ExecutionException e) { LOG.error("Error while executing download", e);