From: David ‘Bombe’ Roden Date: Thu, 14 Oct 2010 06:29:54 +0000 (+0200) Subject: Enhance logging. X-Git-Tag: 0.1-RC1~433 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9f1a40571eb9897ee0921e6016abc54d6efa053f;p=Sone.git Enhance logging. --- 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 }); } } }