From: David ‘Bombe’ Roden Date: Sun, 16 Jan 2011 13:46:12 +0000 (+0100) Subject: Log retrieved trust. X-Git-Tag: 0.4.2^2~48 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cfa3be96597e79a98184ca6c3675fdfbe96c9841;p=Sone.git Log retrieved trust. --- diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java index beb7f2a..ef71a96 100644 --- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java @@ -17,11 +17,15 @@ package net.pterodactylus.sone.template; +import java.util.logging.Level; +import java.util.logging.Logger; + import net.pterodactylus.sone.core.Core; import net.pterodactylus.sone.core.Core.SoneStatus; import net.pterodactylus.sone.data.Profile; import net.pterodactylus.sone.data.Sone; import net.pterodactylus.sone.freenet.wot.Trust; +import net.pterodactylus.util.logging.Logging; import net.pterodactylus.util.template.Accessor; import net.pterodactylus.util.template.DataProvider; import net.pterodactylus.util.template.ReflectionAccessor; @@ -45,6 +49,9 @@ import net.pterodactylus.util.template.ReflectionAccessor; */ public class SoneAccessor extends ReflectionAccessor { + /** The logger. */ + private static final Logger logger = Logging.getLogger(SoneAccessor.class); + /** The core. */ private final Core core; @@ -96,6 +103,7 @@ public class SoneAccessor extends ReflectionAccessor { return null; } Trust trust = core.getTrust(currentSone, sone); + logger.log(Level.FINEST, "Trust for %s by %s: %s", new Object[] { sone, currentSone, trust }); if (trust == null) { return new Trust(null, null, null); }