Fixed the logging so the body only appears in the error messages.