forked from j62/ctbrec
1
0
Fork 0

Made logging less verbose for the resolution tag

This commit is contained in:
0xboobface 2019-12-23 13:37:40 +01:00
parent da28d02da8
commit bce8de01fe
1 changed files with 7 additions and 4 deletions

View File

@ -281,7 +281,7 @@ public class ThumbCell extends StackPane {
try {
updateResolutionTag(resolution);
} catch (Exception e) {
LOG.warn("Couldn't update resolution tag for model {}", model.getName(), e);
LOG.warn("Couldn't update resolution tag for model {} - {}", model.getName(), e.getLocalizedMessage());
}
});
} else {
@ -301,15 +301,18 @@ public class ThumbCell extends StackPane {
}
Thread.sleep(100);
} catch (IOException | InterruptedException e1) {
LOG.warn("Couldn't update resolution tag for model {}", model.getName(), e1);
} catch (IOException e1) {
LOG.warn("Couldn't update resolution tag for model {} - {}", model.getName(), e1.getLocalizedMessage());
} catch(InterruptedException e1) {
Thread.currentThread().interrupt();
LOG.warn("Couldn't update resolution tag for model {} - {}", model.getName(), e1.getLocalizedMessage());
} catch(ExecutionException e) {
if(e.getCause() instanceof EOFException) {
LOG.warn("Couldn't update resolution tag for model {}. Playlist empty", model.getName());
} else if(e.getCause() instanceof ParseException) {
LOG.warn("Couldn't update resolution tag for model {} - {}", model.getName(), e.getMessage());
} else {
LOG.warn("Couldn't update resolution tag for model {}", model.getName(), e);
LOG.warn("Couldn't update resolution tag for model {} - {}", model.getName(), e.getMessage());
}
} finally {
ThumbOverviewTab.resolutionProcessing.remove(model);