From: David ‘Bombe’ Roden Date: Wed, 5 Sep 2012 10:27:16 +0000 (+0200) Subject: Add logging while executing trust update jobs. X-Git-Tag: 0.8.3^2~54^2~4 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=dbb2029407ac7147325b7ef0be9c0e87511ed200;p=Sone.git Add logging while executing trust update jobs. --- diff --git a/src/main/java/net/pterodactylus/sone/core/TrustUpdater.java b/src/main/java/net/pterodactylus/sone/core/TrustUpdater.java index be6f39c..4bbe299 100644 --- a/src/main/java/net/pterodactylus/sone/core/TrustUpdater.java +++ b/src/main/java/net/pterodactylus/sone/core/TrustUpdater.java @@ -132,7 +132,11 @@ public class TrustUpdater extends AbstractService { if (shouldStop() || (updateJob == stopJob)) { break; } + logger.log(Level.FINE, "Running Trust Update Job: " + updateJob); + long startTime = System.currentTimeMillis(); updateJob.run(); + long endTime = System.currentTimeMillis(); + logger.log(Level.FINE, "Trust Update Job finished, took " + (endTime - startTime) + " ms."); } catch (InterruptedException ie1) { /* happens, ignore, loop. */ }