From e638bf36b49d0f6ed09d807494ec9774b8065ef0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 21 Oct 2013 06:35:51 +0200 Subject: [PATCH] Only log the IDs of Sones. --- src/main/java/net/pterodactylus/sone/core/SoneParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.7.4