lobos
lobos copied to clipboard
Log SQL statement when migration fails due to database exception
When a migration fails because database exception, it would be nice if information about what SQL statement was executed is added to stacktrace. For example PostgreSQL doesn't provide SQL statement in the stacktrace.
This would be a helpful feature, indeed!
As a workaround I've been tailing my Postgres server logs.
In my case, running Postgres on OS X, installed via homebrew my output ends up in /usr/local/var/postgres/server.log.
HTH.