From afb782c1460ead90ae3bec65fe89dd8f2ac5e73d Mon Sep 17 00:00:00 2001 From: dcz <dcz@ipipan.waw.pl> Date: Fri, 14 Jul 2023 12:10:18 +0200 Subject: [PATCH] logging --- unifier/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unifier/views.py b/unifier/views.py index b91e59d..57ddba4 100644 --- a/unifier/views.py +++ b/unifier/views.py @@ -27,6 +27,8 @@ from xml.sax import handler, make_parser from django.db.models import Q from django.conf import settings +import logging + @ajax_required @transaction.atomic @@ -517,6 +519,9 @@ def change_unified_frame_status_to_verified_by_superleksykograf(request): def create_unified_frame(frame_id): + + logging.info('Requesting unified frame creation service, frame_id: {}, service_url: {}'.format(frame_id, settings.UNIFIED_FRAME_SERVICE_URL )) + response = requests.post(settings.UNIFIED_FRAME_SERVICE_URL + str(frame_id), timeout=(1000, 1000)) parser = make_parser() -- GitLab