https://kotlinlang.org logo
#exposed
Title
# exposed
d

Dougy

06/28/2020, 4:58 AM
Hey guys, I’m using Netty with Kotlin Exposed. The console prints out the database transactions that look like this:
Copy code
DEBUG Exposed - INSERT INTO ...
Would anyone know how to suppress these messages?
m

marstran

06/29/2020, 7:20 AM
You can usually change the log level for a package in your logging framework. At least with Logback, you can add this to your logback.xml file:
Copy code
<logger name="org.jetbrains.exposed" level="WARN"/>
t

tapac

06/29/2020, 8:53 AM
Or don't add logger with with
Transaction.addLogger
if you don't want debug output, but you still will be able to see warns and errors.
11 Views