https://kotlinlang.org logo
#ktor
Title
# ktor
r

Rob Murdock

02/02/2023, 2:29 PM
Before I forget, I updated the Ktor Client yesterday, which I’m using in Javascript, and ran into an issue where it was always outputting ContentNegotation related trace logs to “console.info”. Looking under the hood, it appeared it always used a global logger, and was completely unaffected by changing the logger in the Logging {} configuration for the client. This broke something for me because I was using the client as the backend of a CLI tool that depends on outputting JSON, and suddenly it wasn’t working-as-intended!
I added my own workaround (basically ignoring the extra output), but because life moves fast and I’m busy, I wanted to note it in a place someone relevant might see it before it falls out of my short-term memory
a

Aleksei Tirman [JB]

02/02/2023, 2:56 PM
r

Rob Murdock

02/02/2023, 2:56 PM
excellent! thanks Aleksei
10 Views