From d0de7459fa121c7e3048109df4b9c06f3eaef21a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 3 Nov 2019 00:59:29 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=94=8A=20Add=20some=20logging?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityLoader.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityLoader.kt b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityLoader.kt index 417894e..fe5be5c 100644 --- a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityLoader.kt +++ b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityLoader.kt @@ -39,7 +39,9 @@ class IdentityLoader @Inject constructor(private val webOfTrustConnector: WebOfT @Throws(PluginException::class) private fun loadTrustedIdentitiesForOwnIdentities(ownIdentities: Collection) = ownIdentities.associateWith { ownIdentity -> + logger.fine { "Getting trusted identities for ${ownIdentities.size} own identities..."} if (ownIdentity.doesNotHaveCorrectContext()) { + logger.fine { "Skipping $ownIdentity because of incorrect context."} emptySet() } else { time({ stopwatch, identities -> "Loaded ${identities.size} identities for ${ownIdentity.nickname} in ${stopwatch.elapsed(MILLISECONDS) / 1000.0}s." }) { -- 2.7.4