From a72a1bca2745941876725f0777639d9337cde9b2 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Fri, 14 Oct 2022 14:01:13 +0500 Subject: [PATCH] add logging to api --- api/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/views.py b/api/views.py index 257648f27..2008ba3b3 100755 --- a/api/views.py +++ b/api/views.py @@ -61,6 +61,9 @@ def createWebsite(request): adminUser = data['adminUser'] admin = Administrator.objects.get(userName=adminUser) + if os.path.exists(ProcessUtilities.debugPath): + logging.writeToFile(f'Create website payload in API {str(data)}') + if admin.api == 0: data_ret = {"existsStatus": 0, 'createWebSiteStatus': 0, 'error_message': "API Access Disabled."}