🎨 Catch and log exceptions in identity manager thread
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / freenet / wot / IdentityLoader.kt
index 3a71772..f9019d0 100644 (file)
@@ -48,12 +48,7 @@ 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." }) {
-                                                               try {
-                                                                       webOfTrustConnector.loadTrustedIdentities(ownIdentity, context?.context)
-                                                               } catch (e: Exception) {
-                                                                       logger.warning { "Caught $e on loading trusted identities for $ownIdentity."}
-                                                                       throw e
-                                                               }
+                                                               webOfTrustConnector.loadTrustedIdentities(ownIdentity, context?.context)
                                                        }
                                                }
                                        }