Added better log info when reconnecting to a server

This commit is contained in:
Robinson 2022-06-01 23:51:45 +02:00
parent c79c0b49c8
commit e4976e3a5a
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
2 changed files with 4 additions and 4 deletions

View File

@ -289,7 +289,7 @@
[BSD 3-Clause License] [BSD 3-Clause License]
https://git.dorkbox.com/dorkbox/MinLog-SLF4J https://git.dorkbox.com/dorkbox/MinLog-SLF4J
https://github.com/EsotericSoftware/minlog https://github.com/EsotericSoftware/minlog
Copyright 2022 Copyright 2021
Dorkbox LLC Dorkbox LLC
Nathan Sweet Nathan Sweet
Dan Brown Dan Brown
@ -298,7 +298,7 @@
- SLF4J - Simple facade or abstraction for various logging frameworks - SLF4J - Simple facade or abstraction for various logging frameworks
[MIT License] [MIT License]
http://www.slf4j.org http://www.slf4j.org
Copyright 2022 Copyright 2021
QOS.ch QOS.ch
- Updates - Software Update Management - Updates - Software Update Management

View File

@ -386,9 +386,9 @@ open class Client<CONNECTION : Connection>(
// short delay, since it failed we want to limit the retry rate to something slower than "as fast as the CPU can do it" // short delay, since it failed we want to limit the retry rate to something slower than "as fast as the CPU can do it"
delay(500) delay(500)
if (logger.isTraceEnabled) { if (logger.isTraceEnabled) {
logger.trace(e) { "Unable to connect, retrying..." } logger.trace(e) { "Unable to connect to ${IP.toString(remoteAddress!!)}, retrying..." }
} else { } else {
logger.info { "Unable to connect, retrying..." } logger.info { "Unable to connect to ${IP.toString(remoteAddress!!)}, retrying..." }
} }
} catch (e: Exception) { } catch (e: Exception) {