X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifold%2Fmanifoldapi.py;h=180807b7e22bfa5ada1a4b64f47c5b1c6c465f16;hb=ad35ed326deb96b25e2a2dea68ceb797b898d203;hp=eea606e3bfd56d740538e95bfab640614745f6b0;hpb=7b369897171d7d8bf3b30bf6d8200813b3e142e0;p=myslice.git diff --git a/manifold/manifoldapi.py b/manifold/manifoldapi.py index eea606e3..180807b7 100644 --- a/manifold/manifoldapi.py +++ b/manifold/manifoldapi.py @@ -72,8 +72,8 @@ class ManifoldAPI: print "====> ManifoldAPI.%s"%repr(),"url",self.url # No password in the logs logAuth = copy.copy(self.auth) - if 'AuthString' in logAuth: - logAuth['AuthString']="XXX" + for obfuscate in ['Authring','session']: + if obfuscate in logAuth: logAuth[obfuscate]="XXX" print "=> auth",logAuth print "=> args",args,"kwds",kwds annotations = { @@ -113,6 +113,8 @@ def _execute_query(request, query, manifold_api_session_auth): print "-"*80 result = manifold_api.forward(query.to_dict()) if result['code'] == 2: + # XXX only if we know it is the issue + del request.session['manifold'] raise Exception, 'Error running query: %r' % result if result['code'] == 1: