From: David ‘Bombe’ Roden Date: Fri, 20 Apr 2012 08:13:02 +0000 (+0200) Subject: Fix logging. X-Git-Tag: 0.8.1^2~2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bbd0a9e769d18091f7c15a1b87a6316f5abb88a1;p=Sone.git Fix logging. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 296d080..811950d 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -2408,7 +2408,7 @@ public class Core extends AbstractService implements IdentityListener, UpdateLis */ @Override public void ownIdentityAdded(OwnIdentity ownIdentity) { - logger.log(Level.FINEST, "Adding OwnIdentity: " + ownIdentity); + logger.log(Level.FINEST, "Adding OwnIdentity: %s", ownIdentity); if (ownIdentity.hasContext("Sone")) { trustedIdentities.put(ownIdentity, Collections.synchronizedSet(new HashSet())); addLocalSone(ownIdentity); @@ -2429,7 +2429,7 @@ public class Core extends AbstractService implements IdentityListener, UpdateLis */ @Override public void identityAdded(OwnIdentity ownIdentity, Identity identity) { - logger.log(Level.FINEST, "Adding Identity: " + identity); + logger.log(Level.FINEST, "Adding Identity: %s", identity); trustedIdentities.get(ownIdentity).add(identity); addRemoteSone(identity); }