Code cleanup

This commit is contained in:
Oleg Agafonov 2020-01-22 10:59:57 +04:00
parent d34824b1c8
commit 7fcd4abcc8
2 changed files with 3 additions and 5 deletions

View file

@ -264,8 +264,6 @@ public class CardPanelRenderImpl extends CardPanel {
protected void paintCard(Graphics2D g) {
// Render the card if we don't have an image ready to use
if (cardImage == null) {
LOGGER.warn("new image: " + getGameCard().getDisplayName() + "; transformed " + (isTransformed() ? "yes" : "no"));
// Try to get card image from cache based on our card characteristics
ImageKey key = new ImageKey(getGameCard(), artImage,
getCardWidth(), getCardHeight(),

View file

@ -170,7 +170,7 @@ public enum ScryfallImageSource implements CardImageSource {
try {
url = getFaceImageUrl(proxy, card, card.isToken(), localizedCode);
} catch (Exception e) {
logger.warn("Failed to prepare image URL for " + card.getName() + " (" + card.getSet() + ") #" + card.getCollectorId());
logger.warn("Failed to prepare image URL (back face) for " + card.getName() + " (" + card.getSet() + ") #" + card.getCollectorId());
downloadServiceInfo.incErrorCount();
continue;
}
@ -190,7 +190,7 @@ public enum ScryfallImageSource implements CardImageSource {
try {
url = searchCard(proxy, "6ED", card.getName());
} catch (Exception e) {
logger.warn("Failed to prepare image URL for " + card.getName() + " (" + card.getSet() + ") #" + card.getCollectorId());
logger.warn("Failed to prepare image URL (S00) for " + card.getName() + " (" + card.getSet() + ") #" + card.getCollectorId());
downloadServiceInfo.incErrorCount();
continue;
}
@ -205,7 +205,7 @@ public enum ScryfallImageSource implements CardImageSource {
try {
url = searchCard(proxy, "AKH", card.getName());
} catch (Exception e) {
logger.warn("Failed to prepare image URL for " + card.getName() + " (" + card.getSet() + ") #" + card.getCollectorId());
logger.warn("Failed to prepare image URL (E01) for " + card.getName() + " (" + card.getSet() + ") #" + card.getCollectorId());
downloadServiceInfo.incErrorCount();
continue;
}