mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
[EG-75] Not handled exception when NetworkMap not accessible (#5903)
* Just passing in the exception was printing the entire stacktrace to the log, now we just pring the exception and message * Updating exception message
This commit is contained in:
parent
609ae5664b
commit
9511329e3d
@ -40,7 +40,7 @@ class NetworkParametersReader(private val trustRoot: X509Certificate,
|
||||
val advertisedParametersHash = try {
|
||||
networkMapClient?.getNetworkMap()?.payload?.networkParameterHash
|
||||
} catch (e: Exception) {
|
||||
logger.info("Unable to download network map", e)
|
||||
logger.warn("Unable to download network map. Node will attempt to start using network-parameters file: $e")
|
||||
// If NetworkMap is down while restarting the node, we should be still able to continue with parameters from file
|
||||
null
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user