Added better log info when reconnecting to a server
This commit is contained in:
parent
c79c0b49c8
commit
e4976e3a5a
4
LICENSE
4
LICENSE
@ -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
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user