Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print offending query or file when there's a PostgreSQL exception #763

Open
polastre opened this issue Aug 31, 2023 · 1 comment
Open

Print offending query or file when there's a PostgreSQL exception #763

polastre opened this issue Aug 31, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@polastre
Copy link
Contributor

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
Copy link
Member

Thanks a lot for reporting this, we should definitely log the exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants