Do logging in gateway. Fix request parameter names.