From: David ‘Bombe’ Roden Date: Sun, 3 Nov 2019 00:42:55 +0000 (+0100) Subject: 🔊 Add even more logging X-Git-Tag: v81^2~60 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=aeaed9de5909fc50949f2dfc2545c2e153cfba5c;p=Sone.git 🔊 Add even more 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 f9019d0..3a71772 100644 --- a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityLoader.kt +++ b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityLoader.kt @@ -48,7 +48,12 @@ class IdentityLoader @Inject constructor(private val webOfTrustConnector: WebOfT } else { logger.fine { "Loading trusted identities for $ownIdentity from WoT..." } time({ stopwatch, identities -> "Loaded ${identities.size} identities for ${ownIdentity.nickname} in ${stopwatch.elapsed(MILLISECONDS) / 1000.0}s." }) { - webOfTrustConnector.loadTrustedIdentities(ownIdentity, context?.context) + try { + webOfTrustConnector.loadTrustedIdentities(ownIdentity, context?.context) + } catch (e: Exception) { + logger.warning { "Caught $e on loading trusted identities for $ownIdentity."} + throw e + } } } }