Error messages improved by including the original request text to aid debugging.
Removed some logging.