From: David ‘Bombe’ Roden Date: Mon, 21 Oct 2013 04:35:51 +0000 (+0200) Subject: Only log the IDs of Sones. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e638bf36b49d0f6ed09d807494ec9774b8065ef0;p=Sone.git Only log the IDs of Sones. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneParser.java b/src/main/java/net/pterodactylus/sone/core/SoneParser.java index a4946db..17d741e 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneParser.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneParser.java @@ -84,13 +84,13 @@ public class SoneParser { } if (document == null) { /* TODO - mark Sone as bad. */ - logger.log(Level.WARNING, String.format("Could not parse XML for Sone %s!", originalSone)); + logger.log(Level.WARNING, String.format("Could not parse XML for Sone %s!", originalSone.getId())); return null; } Optional soneXml = parseXml(originalSone, document); if (!soneXml.isPresent()) { - logger.log(Level.WARNING, String.format("XML for Sone %s can not be parsed!", originalSone)); + logger.log(Level.WARNING, String.format("XML for Sone %s can not be parsed!", originalSone.getId())); return null; }