git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tear down old offline mode that is not really helpful anymore and probably broken...
[myslice.git]
/
manifold
/
manifoldapi.py
diff --git
a/manifold/manifoldapi.py
b/manifold/manifoldapi.py
index
cd14efe
..
664bb32
100644
(file)
--- 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)
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 = {
print "=> auth",logAuth
print "=> args",args,"kwds",kwds
annotations = {
@@
-81,6
+81,8
@@
class ManifoldAPI:
}
args += (annotations,)
result=getattr(self.server, methodName)(*args, **kwds)
}
args += (annotations,)
result=getattr(self.server, methodName)(*args, **kwds)
+ print "%s%r" %(methodName, args)
+
if debug:
print '<= result=',
self._print_result(result)
if debug:
print '<= result=',
self._print_result(result)
@@
-90,14
+92,14
@@
class ManifoldAPI:
except Exception,error:
print "** MANIFOLD API ERROR **"
except Exception,error:
print "** MANIFOLD API ERROR **"
- if "Connection refused" in error:
- raise ManifoldException ( ManifoldResult (code=ManifoldCode.SERVER_UNREACHABLE,
- output="%s answered %s"%(self.url,error)))
- # otherwise
if debug:
print "===== xmlrpc catch-all exception:",error
import traceback
traceback.print_exc(limit=3)
if debug:
print "===== xmlrpc catch-all exception:",error
import traceback
traceback.print_exc(limit=3)
+ if "Connection refused" in error:
+ raise ManifoldException ( ManifoldResult (code=ManifoldCode.SERVER_UNREACHABLE,
+ output="%s answered %s"%(self.url,error)))
+ # otherwise
print "<==== ERROR On ManifoldAPI.%s"%repr()
raise ManifoldException ( ManifoldResult (code=ManifoldCode.SERVER_UNREACHABLE, output="%s"%error) )
print "<==== ERROR On ManifoldAPI.%s"%repr()
raise ManifoldException ( ManifoldResult (code=ManifoldCode.SERVER_UNREACHABLE, output="%s"%error) )