lobos icon indicating copy to clipboard operation
lobos copied to clipboard

Log SQL statement when migration fails due to database exception

Open jsyrjala opened this issue 13 years ago • 1 comments

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.

jsyrjala avatar Jul 20 '12 16:07 jsyrjala

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.

jcf avatar Nov 12 '13 12:11 jcf