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

Kevin

02/18/2019, 11:12 AM
I want to log how long it takes to execute statements. I made a class that implements
StatementInterceptor
and overrode the
beforeExecution
and
afterExecution
methods. Is this the right approach? Or am I missing some functionality that is already built in?
s

spand

02/18/2019, 12:08 PM
Have you looked at
Transaction.warnLongQueriesDuration
?
👍 1
k

Kevin

02/18/2019, 12:17 PM
I did, but apparently it didn’t register. Looking at it again, I think that’s the way to go, thank you! I might still want to log every query, but really that was what I was looking for.
2 Views