aboutsummaryrefslogtreecommitdiff
path: root/app/__init__.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-09-10 12:04:25 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-09-10 12:04:25 +0530
commit2f0d88120f358afd9f2780eaadf1eaf82a681a0b (patch)
treebff0604adaead12847191f71b1f489c9206c0d5f /app/__init__.py
parent0bcccae1dd802664fd81b31e67201120089856ad (diff)
added logging and instant execution support
Diffstat (limited to 'app/__init__.py')
-rw-r--r--app/__init__.py17
1 files changed, 17 insertions, 0 deletions
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