If logging debug, include stack trace even for InvalidOperationException.
merge MMcM: If logging debug, include stack trace even for InvalidOperationException

Merge pull request #1206 from MMcM/sql-layer/pg-debug-error-trace
https://github.com/FoundationDB/sql-layer/pull/1206