Enhance logging.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 06:29:54 +0000 (08:29 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 06:29:54 +0000 (08:29 +0200)
src/main/java/net/pterodactylus/sone/core/SoneInserter.java

index af0f27e..1344a10 100644 (file)
@@ -111,7 +111,10 @@ public class SoneInserter extends AbstractService {
                                if (success) {
                                        synchronized (sone) {
                                                if (sone.getModificationCounter() == modificationCounter) {
+                                                       logger.log(Level.FINE, "Sone “%s” was not modified further, resetting counter…", new Object[] { sone });
                                                        sone.setModificationCounter(0);
+                                               } else {
+                                                       logger.log(Level.FINE, "Sone “%s” was modified since the insert started, starting another insert…", new Object[] { sone });
                                                }
                                        }
                                }