From 6d3d50754b8b31b8e0aeafadc3818142344fcbbd Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 27 Sep 2011 18:07:02 +0200 Subject: disable debug mode by default --- index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.py b/index.py index fcc0893..01b7bee 100755 --- a/index.py +++ b/index.py @@ -3,7 +3,7 @@ import sys sys.path += ['/usr/lib/mailman'] -from web import template, form, application, ctx, wsgi +from web import template, form, application, ctx, wsgi, config from socket import gethostbyaddr, gethostbyname import re import Mailman.Utils @@ -107,6 +107,9 @@ class new: if __name__ == "__main__": + if not '--debug' in sys.argv: + config.debug = False + if '--fastcgi' in sys.argv: wsgi.runwsgi = lambda func, addr=None: wsgi.runfcgi(func, addr) -- cgit v1.2.3-1-g7c22