Fix logging.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 20 Apr 2012 08:13:02 +0000 (10:13 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 2 May 2012 08:53:19 +0000 (10:53 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index 296d080..811950d 100644 (file)
@@ -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<Identity>()));
                        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);
        }