Fork me on GitHub
#hugsql
<
2020-10-24
>
Zor14:10:31

Hello! Has anyone got an elegant way to instrument errors coming from jdbc (in my case, a org.postgresql.util.PSQLException) to get the query text alongside the expression. I can work around this in development by checking the postgres server logs manually. My intuition was to add some kind of interceptor/middleware somewhere, but HugSQL documentation is silent on this.