From aa6e20dc73835b02bc434ca064b36838f19a67db Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 15 Oct 2010 16:27:20 +0200 Subject: [PATCH] Enhance logging. --- src/main/java/net/pterodactylus/sone/core/FreenetInterface.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java index 840adab..d823cc1 100644 --- a/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java +++ b/src/main/java/net/pterodactylus/sone/core/FreenetInterface.java @@ -146,7 +146,7 @@ public class FreenetInterface extends AbstractService { @Override @SuppressWarnings("synthetic-access") public void onFoundEdition(long edition, USK key, ObjectContainer objectContainer, ClientContext clientContext, boolean metadata, short codec, byte[] data, boolean newKnownGood, boolean newSlotToo) { - logger.log(Level.FINE, "Found USK update for Sone “%s” at %s.", new Object[] { sone, key }); + logger.log(Level.FINE, "Found USK update for Sone “%s” at %s, new known good: %s, new slot too: %s.", new Object[] { sone, key, newKnownGood, newSlotToo }); if (newKnownGood) { sone.updateUris(key.getURI()); soneDownloader.fetchSone(sone); @@ -182,6 +182,7 @@ public class FreenetInterface extends AbstractService { return; } try { + logger.log(Level.FINEST, "Unsubscribing from USK for %s…", new Object[] { sone }); node.clientCore.uskManager.unsubscribe(USK.create(sone.getRequestUri()), uskCallback); } catch (MalformedURLException mue1) { logger.log(Level.FINE, "Could not unsubscribe USK “" + sone.getRequestUri() + "”!", mue1); -- 2.7.4