summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2015-04-02 13:59:10 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2015-04-02 13:59:10 (GMT)
commit8796d961f00ffc37eed558f93844beb29ca3fb1a (patch)
treeca77ba98ba24383ef0c12a3929b49908e142da1d
parentac3bfeb330f3dc7b37f7fb530485827744e1e64b (diff)
downloadauthentic2-supann-8796d961f00ffc37eed558f93844beb29ca3fb1a.zip
authentic2-supann-8796d961f00ffc37eed558f93844beb29ca3fb1a.tar.gz
authentic2-supann-8796d961f00ffc37eed558f93844beb29ca3fb1a.tar.bz2
Add DEBUG key to supann.confv0.12
-rw-r--r--config.py5
-rw-r--r--supann.conf4
2 files changed, 9 insertions, 0 deletions
diff --git a/config.py b/config.py
index 420f32e..327fb39 100644
--- a/config.py
+++ b/config.py
@@ -133,3 +133,8 @@ AUTHENTICATION_BACKENDS = ('authentic2.backends.LDAPBackend',)
# bypass authentic2 warning: "DEFAULT_FROM_EMAIL must be customized"
DEFAULT_FROM_EMAIL = 'root@localhost'
+
+if os.environ.get('DEBUG') == '1':
+ DEBUG = True
+ for logger in LOGGING['loggers'].values():
+ logger['level'] = 'DEBUG'
diff --git a/supann.conf b/supann.conf
index 23b7418..61d4df7 100644
--- a/supann.conf
+++ b/supann.conf
@@ -1,5 +1,9 @@
# Fichier /etc/default/authentic2
#
+# Activer le mode DEBUG
+#
+# export DEBUG=1
+#
# Configuration du LDAP
#
# URL de l'annuaire LDAP