Improve logging

This commit is contained in:
0xboobface 2018-10-26 00:59:14 +02:00
parent 02b50f61c5
commit 6be09079a3
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package ctbrec.ui; package ctbrec.ui;
import java.io.EOFException;
import java.io.IOException; import java.io.IOException;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@ -207,8 +208,14 @@ public class ThumbCell extends StackPane {
LOG.trace("Removing invalid resolution value for {}", model.getName()); LOG.trace("Removing invalid resolution value for {}", model.getName());
model.invalidateCacheEntries(); model.invalidateCacheEntries();
} }
} catch (ExecutionException | IOException | InterruptedException e1) { } catch (IOException | InterruptedException e1) {
LOG.warn("Couldn't update resolution tag for model {}", model.getName(), e1); LOG.warn("Couldn't update resolution tag for model {}", model.getName(), e1);
} catch(ExecutionException e) {
if(e.getCause() instanceof EOFException) {
LOG.warn("Couldn't update resolution tag for model {}. Playlist empty", model.getName());
} else {
LOG.warn("Couldn't update resolution tag for model {}", model.getName(), e);
}
} finally { } finally {
ThumbOverviewTab.resolutionProcessing.remove(model); ThumbOverviewTab.resolutionProcessing.remove(model);
} }