From: David ‘Bombe’ Roden Date: Sat, 2 Nov 2019 23:59:29 +0000 (+0100) Subject: 🔊 Add some logging X-Git-Tag: v81^2~62 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=d0de7459fa121c7e3048109df4b9c06f3eaef21a 🔊 Add some logging --- 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." }) {