Make pgerror logging less invasive

Instead of the full stack trace. This will allow the tests to have less output.