🔊 Add debug logging for unregistering USKs
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 30 Apr 2020 12:51:31 +0000 (14:51 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 30 Apr 2020 12:51:31 +0000 (14:51 +0200)
src/main/java/net/pterodactylus/sone/core/FreenetInterface.java

index 35ac6a1..50ee9d0 100644 (file)
@@ -285,7 +285,8 @@ public class FreenetInterface {
                        return;
                }
                try {
-                       logger.log(Level.FINEST, String.format("Unsubscribing from USK for %s…", sone));
+                       logger.log(Level.FINE, String.format("Unsubscribing from USK for %s…", sone));
+                       logger.log(Level.FINEST, String.format("USKs left: %d", soneUskCallbacks.size()));
                        node.clientCore.uskManager.unsubscribe(USK.create(soneUriCreator.getRequestUri(sone)), uskCallback);
                } catch (MalformedURLException mue1) {
                        logger.log(Level.FINE, String.format("Could not unsubscribe USK “%s”!", soneUriCreator.getRequestUri(sone)), mue1);