🔊 Add even more logging
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 3 Nov 2019 00:42:55 +0000 (01:42 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 3 Nov 2019 00:42:55 +0000 (01:42 +0100)
src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityLoader.kt

index f9019d0..3a71772 100644 (file)
@@ -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
+                                                               }
                                                        }
                                                }
                                        }