From: Johannes Bornhold <johannes@rhodecode.com>
Add exception information to the logging output
Add config option and tests for attaching exception information to the logging output