From d6c07a2e1c0c1cb8088843d57075359c8af4ae1e Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Tue, 25 Aug 2020 11:39:29 +0200 Subject: [PATCH] [IMP] emcc: add logs --- easy_my_coop_connector/components/emc_backend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/easy_my_coop_connector/components/emc_backend.py b/easy_my_coop_connector/components/emc_backend.py index 6c06005..1df42b0 100644 --- a/easy_my_coop_connector/components/emc_backend.py +++ b/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):