*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
private val logger: Logger = Logger.getLogger(IdentityLoader::class.java.name)
@Throws(WebOfTrustException::class)
private val logger: Logger = Logger.getLogger(IdentityLoader::class.java.name)
@Throws(WebOfTrustException::class)
time({ stopwatch, identities -> "Loaded ${identities.size} own identities in ${stopwatch.elapsed(MILLISECONDS) / 1000.0}s." }) {
webOfTrustConnector.loadAllOwnIdentities()
}.let(this::loadTrustedIdentitiesForOwnIdentities)
time({ stopwatch, identities -> "Loaded ${identities.size} own identities in ${stopwatch.elapsed(MILLISECONDS) / 1000.0}s." }) {
webOfTrustConnector.loadAllOwnIdentities()
}.let(this::loadTrustedIdentitiesForOwnIdentities)
} 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." }) {
} 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)