From 2f0d88120f358afd9f2780eaadf1eaf82a681a0b Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Thu, 10 Sep 2020 12:04:25 +0530 Subject: added logging and instant execution support --- app/__init__.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'app/__init__.py') diff --git a/app/__init__.py b/app/__init__.py index 8a397ec..b405e40 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -10,6 +10,23 @@ DB_USER = config['DATABASE']['USER'] DB_PASSWORD = config['DATABASE']['PASSWORD'] DB_NAME = config['DATABASE']['NAME'] UPLOAD_FOLDER = config['FILES']['UPLOAD_FOLDER'] +LOG_FOLDER = config['FILES']['LOG_FOLDER'] +INSTANT_EXEC = config['EXECUTION']['INSTANT'] + +if INSTANT_EXEC == 'True': + INSTANT_EXEC = True +else: + INSTANT_EXEC = False + +LOG = True +SAVE_LOGS = False + +if config['LOGS']['LOG'] == 'True': + LOG = True + if config['LOGS']['SAVE_LOGS'] == 'True': + SAVE_LOGS = True +else: + LOG = False """ # Hardcoded Values -- cgit v1.2.3