pculture/miro — pull request #342 by bendk (2012-04-24 22:58:17+00:00)
Title: bz19032: better debugging for failed SQL statements.

Log errors when our SQL statements fail for errors other than OperationError.
This includes integrity error and others.

Refactored log_error slightly

This won't fix #19032, but hopefully it will help us track it down.