From 9f1a40571eb9897ee0921e6016abc54d6efa053f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 14 Oct 2010 08:29:54 +0200 Subject: [PATCH] Enhance logging. --- src/main/java/net/pterodactylus/sone/core/SoneInserter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index af0f27e..1344a10 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -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 }); } } } -- 2.7.4