Fix bad formatting in log statements

This commit is contained in:
Niels van Velzen 2020-10-23 19:06:27 +02:00
parent 221d81aace
commit f90e4bd4c0
2 changed files with 4 additions and 4 deletions

View File

@ -97,7 +97,7 @@ class WebSocketApi(
.catch { logger.error(it) }
.onCompletion {
// Reconnect
logger.debug("Socket receiver completed, found %s subscriptions", subscriptions.size)
logger.debug("Socket receiver completed, found ${subscriptions.size} subscriptions")
delay(RECONNECT_DELAY)
if (subscriptions.isNotEmpty()) reconnect()
}
@ -113,7 +113,7 @@ class WebSocketApi(
.collect()
private suspend fun subscriptionsChanged() {
logger.debug("Subscriptions changed to %s", subscriptions.size)
logger.debug("Subscriptions changed to ${subscriptions.size}")
if (socketJob != null && subscriptions.isEmpty()) {
logger.info("Dropping connection")

View File

@ -32,7 +32,7 @@ class AddressCandidateHelper(
init {
try {
logger.debug("Input is %s", input)
logger.debug("Input is $input")
// Add the input as initial candidate
candidates.add(URLBuilder().apply {
@ -45,7 +45,7 @@ class AddressCandidateHelper(
}.build())
} catch (error: URLParserException) {
// Input can't be parsed
logger.error("Input %s could not be parsed", input, error)
logger.error("Input $input could not be parsed", error)
}
}