diff --git a/src/main/java/ctbrec/recorder/LocalRecorder.java b/src/main/java/ctbrec/recorder/LocalRecorder.java index b12c444b..2f21da14 100644 --- a/src/main/java/ctbrec/recorder/LocalRecorder.java +++ b/src/main/java/ctbrec/recorder/LocalRecorder.java @@ -532,7 +532,7 @@ public class LocalRecorder implements Recorder { boolean deletedAllFiles = true; for (File file : files) { try { - LOG.debug("Deleting {}", file.getAbsolutePath()); + LOG.trace("Deleting {}", file.getAbsolutePath()); Files.delete(file.toPath()); } catch (Exception e) { deletedAllFiles = false; @@ -542,9 +542,6 @@ public class LocalRecorder implements Recorder { if (deletedAllFiles) { LOG.debug("All files deleted"); - for (String file : directory.list()) { - LOG.debug(file); - } if (directory.list().length == 0) { LOG.debug("Deleting directory {}", directory); boolean deleted = directory.delete(); diff --git a/src/main/java/ctbrec/recorder/download/HlsDownload.java b/src/main/java/ctbrec/recorder/download/HlsDownload.java index 2ca9f0ee..5ff433a0 100644 --- a/src/main/java/ctbrec/recorder/download/HlsDownload.java +++ b/src/main/java/ctbrec/recorder/download/HlsDownload.java @@ -109,7 +109,7 @@ public class HlsDownload extends AbstractHlsDownload { throw new IOException("Couldn't determine segments uri"); } } catch(ParseException e) { - throw new IOException("Couldn't parse stream information", e); + throw new IOException("Couldn't parse HLS playlist:\n" + e.getInput(), e); } catch(PlaylistException e) { throw new IOException("Couldn't parse HLS playlist", e); } catch(EOFException e) {