From 8e8995dda6e67be4d81d3724100ef24f5d1eb7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 10 Dec 2018 19:18:02 +0100 Subject: [PATCH] contacts: log user creation requests to authentic (#28828) --- welco/contacts/views.py | 4 ++++ 1 file changed, 4 insertions(+) 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 . 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): -- 2.20.0.rc2