mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
Code cleanup
This commit is contained in:
parent
d34824b1c8
commit
7fcd4abcc8
2 changed files with 3 additions and 5 deletions
|
@ -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(),
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue