add logging code to `requests`; tested