added logging to RemoveXForwardedHeaders