Ensuring response is correctly logged