mirror of
https://github.com/corda/corda.git
synced 2025-01-29 15:43:55 +00:00
Simplify the toString, so that printing ConnectionChange events into the log output only gives a summary and reduce logging. (#3247)
This commit is contained in:
parent
ac212972ea
commit
202bd6603b
@ -3,4 +3,8 @@ package net.corda.nodeapi.internal.protonwrapper.netty
|
||||
import java.net.InetSocketAddress
|
||||
import java.security.cert.X509Certificate
|
||||
|
||||
data class ConnectionChange(val remoteAddress: InetSocketAddress, val remoteCert: X509Certificate?, val connected: Boolean, val badCert: Boolean)
|
||||
data class ConnectionChange(val remoteAddress: InetSocketAddress, val remoteCert: X509Certificate?, val connected: Boolean, val badCert: Boolean) {
|
||||
override fun toString(): String {
|
||||
return "ConnectionChange remoteAddress: $remoteAddress connected state: $connected cert subject: ${remoteCert?.subjectDN} cert ok: ${!badCert}"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user