No user password in logs
authorLoic Baron <loic.baron@lip6.fr>
Wed, 20 Nov 2013 15:50:52 +0000 (16:50 +0100)
committerLoic Baron <loic.baron@lip6.fr>
Wed, 20 Nov 2013 15:50:52 +0000 (16:50 +0100)
README
manifold/manifoldapi.py

diff --git a/README b/README
index 3a894cc..7bcba42 100644 (file)
--- a/README
+++ b/README
@@ -9,6 +9,8 @@ See the devel/ subdir for more devel-oriented doc.
 *  REQUIREMENTS  is to have python + django (1.5.2) installed django
 ** should be straightforward
 ** see devel/django-install.txt in case of trouble
+$ apt-get install python-django
+$ apt-get install python-django-south
 
 * git clone git://git.onelab.eu/myslice.git
 -- or --
index 1ffcace..700a765 100644 (file)
@@ -63,7 +63,11 @@ class ManifoldAPI:
             try:
                 if debug:
                     print "====> ManifoldAPI.%s"%repr(),"url",self.url
-                    print "=> auth",self.auth
+                    # No password in the logs
+                    logAuth = self.auth
+                    if 'AuthString' in logAuth:
+                        logAuth['AuthString']="XXX"
+                    print "=> auth",logAuth
                     print "=> args",args,"kwds",kwds
                 annotations = {
                     'authentication': self.auth