CORDA-3092: Exception is logged if flow session message can't be deserialised (#5309)

This commit is contained in:
Shams Asari 2019-07-17 18:14:12 +01:00 committed by GitHub
parent dd1247242a
commit 2b36b6d8cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,7 +274,7 @@ class StateMachineManagerImpl(
val sessionMessage = try {
message.data.deserialize<SessionMessage>()
} catch (ex: Exception) {
logger.error("Received corrupt SessionMessage data from $peer")
logger.error("Unable to deserialize SessionMessage data from $peer", ex)
return
}
val sender = serviceHub.networkMapCache.getPeerByLegalName(peer)