Modified to log the request body during post