Added more detailed info when reconnecing

This commit is contained in:
Robinson 2023-08-07 19:56:38 -06:00
parent 8aa919b28a
commit 296c600245
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 3 additions and 2 deletions

View File

@ -611,10 +611,11 @@ open class Client<CONNECTION : Connection>(
// once we're done with the connection process, stop trying
break
} catch (e: ClientRetryException) {
val inSeconds = TimeUnit.NANOSECONDS.toSeconds(handshakeTimeoutNs)
val message = if (isIPC) {
"Unable to connect to IPC, retrying..."
"Unable to connect to IPC in $inSeconds seconds, retrying..."
} else {
"Unable to connect to $remoteAddressPrettyString ($port1|$port2), retrying..."
"Unable to connect to $remoteAddressPrettyString ($port1|$port2) in $inSeconds seconds, retrying..."
}
if (logger.isTraceEnabled) {