logRequest and Response