From 12407bd84e519a9b663dc6c5f53b4fcc84b9d522 Mon Sep 17 00:00:00 2001 From: karthik murakonda Date: Fri, 29 Apr 2022 22:01:52 +0530 Subject: [PATCH] added precheck warning --- CDC_Backend/APIs/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/CDC_Backend/APIs/utils.py b/CDC_Backend/APIs/utils.py index fc17705..1abe829 100644 --- a/CDC_Backend/APIs/utils.py +++ b/CDC_Backend/APIs/utils.py @@ -52,6 +52,7 @@ def precheck(required_data=None): return view_func(request, *args, **kwargs) except: + logger.warning("Precheck: " + str(sys.exc_info())) return Response({'action': "Pre check", 'message': "Something went wrong"}, status=status.HTTP_400_BAD_REQUEST)