Logging transaction.commit error