Fix logging in the request class, also refactor weird unnecessary double
merge.
Merge pull request #489 from Kami/fix_request_error_messages

Fix logging in the request class