summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-12-10 18:18:02 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-12-11 13:56:54 (GMT)
commit879fe9643a344b59896b22701d87097e2580215f (patch)
tree91adafa3a7de337d88ab0c860cf1b5d601d491f4
parentd8cf9bb827b34934194b15bc16cc6755da703b09 (diff)
downloadwelco-879fe9643a344b59896b22701d87097e2580215f.zip
welco-879fe9643a344b59896b22701d87097e2580215f.tar.gz
welco-879fe9643a344b59896b22701d87097e2580215f.tar.bz2
contacts: log user creation requests to authentic (#28828)
-rw-r--r--welco/contacts/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/welco/contacts/views.py b/welco/contacts/views.py
index f2fe2d6..8e81420 100644
--- a/welco/contacts/views.py
+++ b/welco/contacts/views.py
@@ -15,6 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import json
+import logging
import random
import requests
import time
@@ -140,10 +141,13 @@ class ContactAdd(FormView):
url = authentic_url + 'api/users/?orig=%s' % authentic_orig
signed_url = sign_url(url, authentic_secret)
+ logger = logging.getLogger(__name__)
+ logger.info('POST to authentic (%r)', json.dumps(msg))
authentic_response = requests.post(
signed_url,
data=json.dumps(msg),
headers={'Content-type': 'application/json'})
+ logger.info('Got authentic response (%r)', authentic_response.text)
user_uuid = authentic_response.json().get('uuid')
for i in range(100):