Log the HTTP client being used with each request

This commit is contained in:
Adrian Perez de Castro
2016-06-28 23:22:21 +03:00
parent 28477c4db7
commit cf14c37e58

View File

@@ -258,6 +258,7 @@ function API:_send(method, path, query_args, body, headers, api_path)
end end
-- Call the HTTP library. -- Call the HTTP library.
self._log("-!- HTTP client: %s", self._http)
local code, headers, body = self._http:request(self._log, method:upper(), local code, headers, body = self._http:request(self._log, method:upper(),
self.base_url .. (api_path or self.api_path) .. path, params, body, headers) self.base_url .. (api_path or self.api_path) .. path, params, body, headers)
if code == 200 then if code == 200 then