From: David ‘Bombe’ Roden Date: Mon, 21 Oct 2013 04:36:10 +0000 (+0200) Subject: Log the content of the protocol version optionals. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5e28154020be4de5eeee9a5549e6b909b680affc;p=Sone.git Log the content of the protocol version optionals. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneParser.java b/src/main/java/net/pterodactylus/sone/core/SoneParser.java index 17d741e..fe2e0a9 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneParser.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneParser.java @@ -100,11 +100,11 @@ public class SoneParser { Optional protocolVersion = parseProtocolVersion(soneXml.get()); if (protocolVersion.isPresent()) { if (protocolVersion.get() < 0) { - logger.log(Level.WARNING, String.format("Invalid protocol version: %d! Not parsing Sone.", protocolVersion)); + logger.log(Level.WARNING, String.format("Invalid protocol version: %d! Not parsing Sone.", protocolVersion.get())); return null; } if (protocolVersion.get() > MAX_PROTOCOL_VERSION) { - logger.log(Level.WARNING, String.format("Unknown protocol version: %d! Not parsing Sone.", protocolVersion)); + logger.log(Level.WARNING, String.format("Unknown protocol version: %d! Not parsing Sone.", protocolVersion.get())); return null; } }