Add some logging around the API server request handling.