FAQ | This is a LIVE service | Changelog

Skip to content

add middleware to log HTTP 400 errors

Dr Rich Wareham requested to merge github/fork/rjw57/log-400-errors into master

To aid in debugging, it is useful to log to the console the requests which cause HTTP 400 responses to be returned and the response body itself.

Add a simple middleware which intercepts HTTP errors and logs the required information.

This PR has a corresponding PR at uisautomation/iar-deploy#32 which updates the logging configuration in the deployment.

Merge request reports