Print offending query or file when there's a PostgreSQL exception
polastre opened this issue · 1 comments
polastre commented
When you get org.postgresql.util.PSQLException
, there's a stack trace with something like:
java.util.concurrent.ExecutionException: org.apache.baremaps.workflow.WorkflowException: org.apache.baremaps.workflow.WorkflowException: org.apache.baremaps.workflow.WorkflowException: org.postgresql.util.PSQLException: ERROR: column "name" does not exist
However there's no indication of which file or sql statement caused this exception.
I believe in v0.7.1, it would tell you which sql statement was just executed. In the v0.7.2-rc, it doesn't tell you which sql statement.
I'm running import
with the log level set to debug and can't track down the offending sql.
It would be helpful to include more debugging information here to be developer friendly.
bchapuis commented
Thanks a lot for reporting this, we should definitely log the exception.