From 5efee697b2a60e8de37d0ed9e55e1665f1e7eea8 Mon Sep 17 00:00:00 2001 From: 0xboobface <0xboobface@gmail.com> Date: Thu, 16 Aug 2018 13:41:36 +0200 Subject: [PATCH] Improved exception handling and logging --- src/main/java/ctbrec/recorder/LocalRecorder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ctbrec/recorder/LocalRecorder.java b/src/main/java/ctbrec/recorder/LocalRecorder.java index 88e28a69..984adb43 100644 --- a/src/main/java/ctbrec/recorder/LocalRecorder.java +++ b/src/main/java/ctbrec/recorder/LocalRecorder.java @@ -351,8 +351,8 @@ public class LocalRecorder implements Recorder { return mergedFile; } catch (IOException e) { - LOG.error("Couldn't generate playlist file", e); - } catch (ParseException | PlaylistException | InvalidPlaylistException e) { + LOG.error("Couldn't merge segments", e); + } catch (ParseException | PlaylistException e) { LOG.error("Playlist is invalid", e); } finally { segmentMergers.remove(recDir); @@ -369,7 +369,7 @@ public class LocalRecorder implements Recorder { } catch (IOException | ParseException | PlaylistException e) { LOG.error("Couldn't generate playlist file", e); } catch (InvalidPlaylistException e) { - LOG.error("Playlist is invalid", e); + LOG.error("Playlist is invalid and will be deleted", e); File playlist = new File(recDir, "playlist.m3u8"); playlist.delete(); } finally {