Fix some syntax error. Add log to http request.