forked from j62/ctbrec
Improved exception handling and logging
This commit is contained in:
parent
bfc2074dc7
commit
5efee697b2
|
@ -351,8 +351,8 @@ public class LocalRecorder implements Recorder {
|
||||||
|
|
||||||
return mergedFile;
|
return mergedFile;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOG.error("Couldn't generate playlist file", e);
|
LOG.error("Couldn't merge segments", e);
|
||||||
} catch (ParseException | PlaylistException | InvalidPlaylistException e) {
|
} catch (ParseException | PlaylistException e) {
|
||||||
LOG.error("Playlist is invalid", e);
|
LOG.error("Playlist is invalid", e);
|
||||||
} finally {
|
} finally {
|
||||||
segmentMergers.remove(recDir);
|
segmentMergers.remove(recDir);
|
||||||
|
@ -369,7 +369,7 @@ public class LocalRecorder implements Recorder {
|
||||||
} catch (IOException | ParseException | PlaylistException e) {
|
} catch (IOException | ParseException | PlaylistException e) {
|
||||||
LOG.error("Couldn't generate playlist file", e);
|
LOG.error("Couldn't generate playlist file", e);
|
||||||
} catch (InvalidPlaylistException 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");
|
File playlist = new File(recDir, "playlist.m3u8");
|
||||||
playlist.delete();
|
playlist.delete();
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue