From bce8de01fe0cd8779509ecd587559e82a8daecd7 Mon Sep 17 00:00:00 2001 From: 0xboobface <0xboobface@gmail.com> Date: Mon, 23 Dec 2019 13:37:40 +0100 Subject: [PATCH] Made logging less verbose for the resolution tag --- client/src/main/java/ctbrec/ui/ThumbCell.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/client/src/main/java/ctbrec/ui/ThumbCell.java b/client/src/main/java/ctbrec/ui/ThumbCell.java index 8129cda2..ffb404d3 100644 --- a/client/src/main/java/ctbrec/ui/ThumbCell.java +++ b/client/src/main/java/ctbrec/ui/ThumbCell.java @@ -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);