It might be wise to enable PostgreSQL query logging by default with:
log_statement
for development. TODO does it noticeably affect performance?One major advantage of this method is that Sequelize's error logging is a bit crap, and sometimes the error appears much much more clearly in the PostgreSQL logs.