Capture more data when logging errors

Implementing what we discussed [here](https://github.com/nvie/rq/pull/363/files#r15327595)