Skip to content

Commit

Permalink
Fix missing arg in logging output
Browse files Browse the repository at this point in the history
  • Loading branch information
sghpjuikit committed Jan 19, 2025
1 parent b8e0913 commit 28cab02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/player/main/sp/it/pl/main/AppInstanceCom.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ class AppInstanceCom() {
@Blocking
fun fireNewInstanceEvent(args: List<String>): Unit =
runBlocking(NEW) {
logger.info { "Sending NewAppInstance($args)" }
logger.info { "Sending NewAppInstance(args=$args)" }
APP.http.client.post("http://127.0.0.1:${APP.http.url.port}$api") { bodyJs(args) }
}

/** Handles received new app instance event */
fun newInstanceLaunched(args: List<String>) {
logger.info { "NewAppInstance($args)" }
logger.info { "NewAppInstance(args=$args)" }
runFX { onNewInstanceHandlers(args) }
}

Expand Down
8 changes: 4 additions & 4 deletions src/util/main/sp/it/util/file/json/JsonParsing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ private class Parser(lexer: Lexer) {
is Num -> return JsNumber(token.value)
Lbk -> JsArrayParseState(ArrayList()).apply { stack.push(c) }
Lbc -> JsObjectParseState(LinkedHashMap<String, JsValue>()).apply { stack.push(c) }
else -> fail { "Invalid token at position $lexerLastPos" }
else -> fail { "Invalid token=$token at position $lexerLastPos" }
}
is JsArrayParseState ->
when (val token = currentToken.apply { consumeToken(currentToken) }) {
Expand All @@ -306,7 +306,7 @@ private class Parser(lexer: Lexer) {
stack.pop()
} ?: x
}
else -> fail { "Invalid token at position $lexerLastPos" }
else -> fail { "Invalid token=$token at position $lexerLastPos" }
}
is JsObjectParseState ->
when (val token = currentToken.apply { consumeToken(currentToken) }) {
Expand All @@ -321,7 +321,7 @@ private class Parser(lexer: Lexer) {
stack.pop()
} ?: x
}
else -> fail { "Invalid token at position $lexerLastPos" }
else -> fail { "Invalid token=$token at position $lexerLastPos" }
}
is JsObjectKeyParseState ->
when (val token = currentToken.apply { consumeToken(currentToken) }) {
Expand All @@ -333,7 +333,7 @@ private class Parser(lexer: Lexer) {
Lbk -> JsArrayParseState(ArrayList()).apply { stack.push(c) }
Lbc -> JsObjectParseState(LinkedHashMap<String, JsValue>()).apply { stack.push(c) }
Rbc -> { stack.pop().apply { c.o.value.put(c.key, c.value.asIs()) }.com(); stack.pop().apply { add(JsObject(c.o.value)) } }
else -> fail { "Invalid token at position $lexerLastPos" }
else -> fail { "Invalid token=$token at position $lexerLastPos" }
}
}
} while (
Expand Down

0 comments on commit 28cab02

Please sign in to comment.