X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifold%2Fmanifoldapi.py;h=1b97505dec9c2e44cd9d726a97975b0ff8026d69;hb=d1197c134b70bda643a752bdaf891190cb5a15e7;hp=ee1f82ecfc0fe7a16d7243b1a6aa8fda33410b38;hpb=d45cc579de128aecc723e387023f92b62165ad59;p=unfold.git diff --git a/manifold/manifoldapi.py b/manifold/manifoldapi.py index ee1f82ec..1b97505d 100644 --- a/manifold/manifoldapi.py +++ b/manifold/manifoldapi.py @@ -1,5 +1,5 @@ # Manifold API Python interface -import xmlrpclib +import copy, xmlrpclib from myslice.config import Config @@ -70,13 +70,19 @@ class ManifoldAPI: try: if debug: print "====> ManifoldAPI.%s"%repr(),"url",self.url - print "=> auth",self.auth + # No password in the logs + logAuth = copy.copy(self.auth) + if 'AuthString' in logAuth: + logAuth['AuthString']="XXX" + print "=> auth",logAuth print "=> args",args,"kwds",kwds annotations = { 'authentication': self.auth } args += (annotations,) result=getattr(self.server, methodName)(*args, **kwds) + print "%s%r" %(methodName, args) + if debug: print '<= result=', self._print_result(result)