forked from j62/ctbrec
1
0
Fork 0

Change log levels of some log messages

This commit is contained in:
0xboobface 2019-12-27 13:53:05 +01:00
parent b72777f6fb
commit da4c1bda2c
3 changed files with 4 additions and 3 deletions

View File

@ -123,7 +123,7 @@ public class NextGenLocalRecorder implements Recorder {
recordingsLock.unlock(); recordingsLock.unlock();
} }
if (rec.getStatus() == State.WAITING) { if (rec.getStatus() == State.WAITING) {
LOG.debug("Download finished for {} -> Starting post-processing", rec.getModel().getName()); LOG.info("Download finished for {} -> Starting post-processing", rec.getModel().getName());
submitPostProcessingJob(rec); submitPostProcessingJob(rec);
// check, if we have to restart the recording // check, if we have to restart the recording
@ -154,6 +154,7 @@ public class NextGenLocalRecorder implements Recorder {
setRecordingStatus(recording, State.FINISHED); setRecordingStatus(recording, State.FINISHED);
recordingManager.saveRecording(recording); recordingManager.saveRecording(recording);
deleteIfTooShort(recording); deleteIfTooShort(recording);
LOG.info("Post-processing finished for {}", recording.getModel().getName());
} catch (Exception e) { } catch (Exception e) {
if (e instanceof InterruptedException) { // NOSONAR if (e instanceof InterruptedException) { // NOSONAR
Thread.currentThread().interrupt(); Thread.currentThread().interrupt();

View File

@ -37,7 +37,7 @@ public class PlaylistGenerator {
private List<ProgressListener> listeners = new ArrayList<>(); private List<ProgressListener> listeners = new ArrayList<>();
public File generate(File directory) throws IOException, ParseException, PlaylistException { public File generate(File directory) throws IOException, ParseException, PlaylistException {
LOG.debug("Starting playlist generation for {}", directory); LOG.info("Starting playlist generation for {}", directory);
// get a list of all ts files and sort them by sequence // get a list of all ts files and sort them by sequence
File[] files = directory.listFiles(f -> f.getName().endsWith(".ts")); File[] files = directory.listFiles(f -> f.getName().endsWith(".ts"));
if (files == null || files.length == 0) { if (files == null || files.length == 0) {

View File

@ -95,7 +95,7 @@ public class CamsodaModel extends AbstractModel {
if (playlistUrl == null) { if (playlistUrl == null) {
return Collections.emptyList(); return Collections.emptyList();
} }
LOG.debug("Loading playlist {}", playlistUrl); LOG.trace("Loading playlist {}", playlistUrl);
Request req = new Request.Builder() Request req = new Request.Builder()
.url(playlistUrl) .url(playlistUrl)
.header(ACCEPT_LANGUAGE, Locale.ENGLISH.getLanguage()) .header(ACCEPT_LANGUAGE, Locale.ENGLISH.getLanguage())