summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Reports/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Reports/settings.py')
-rw-r--r--src/lib/Server/Reports/settings.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/Server/Reports/settings.py b/src/lib/Server/Reports/settings.py
index 128658ff1..2b35d0d05 100644
--- a/src/lib/Server/Reports/settings.py
+++ b/src/lib/Server/Reports/settings.py
@@ -11,15 +11,14 @@ if len(c.read(['/etc/bcfg2.conf', '/etc/bcfg2-web.conf'])) == 0:
sys.exit(1)
try:
- dset = c.get('statistics', 'web_debug')
+ DEBUG = c.getboolean('statistics', 'web_debug')
except:
- dset = 'false'
-
-if dset == "True":
- DEBUG = True
-else:
DEBUG = False
-
+
+if DEBUG:
+ print("Warning: Setting web_debug to True causes extraordinary memory "
+ "leaks. Only use this setting if you know what you're doing.")
+
TEMPLATE_DEBUG = DEBUG
ADMINS = (