mirror of
https://github.com/jellyfin/jellyfin-sdk-kotlin.git
synced 2025-02-18 15:18:25 +00:00
Fix bad formatting in log statements
This commit is contained in:
parent
221d81aace
commit
f90e4bd4c0
@ -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")
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user