[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:
jmacmahonr3 2020-01-30 17:26:22 +00:00 committed by GitHub
parent 609ae5664b
commit 9511329e3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}