added logging to GET / POST requests when an error occurs