Browse Source

[IMP] emcc: add logs

pull/115/head
robin.keunen 4 years ago
parent
commit
d6c07a2e1c
  1. 2
      easy_my_coop_connector/components/emc_backend.py

2
easy_my_coop_connector/components/emc_backend.py

@ -44,6 +44,7 @@ class EMCBackend(models.Model):
if url.startswith("/"):
url = self.location + url
_logger.info("GET to {} w/ params {}".format(url, params))
return requests.get(url, params=params, headers=headers)
def _process_response(self, response):
@ -88,6 +89,7 @@ class EMCBackend(models.Model):
if url.startswith("/"):
url = self.location + url
_logger.info("POST to %s %s" % url)
return requests.post(url, json=data, headers=headers)
def http_post_content(self, url, data, headers=None):

Loading…
Cancel
Save