actual_name = PlShell.alias_calls[name]
if not actual_name:
raise Exception(
- "Illegal method call %s for PL driver" % (name))
+ "Illegal method call {} for PL driver".format(name))
+# logger.info("__getattr__ {} *={} **={}"
+# .format(actual_name, args, kwds))
+# try:
+# hrn = args[0]['hrn']
+# logger.info("getattr/hrn >{}< has len={})"
+# .format(hrn, len(hrn)))
+# except Exception as exc:
+# pass
result = getattr(self.proxy, actual_name)(
self.plauth, *args, **kwds)
- logger.debug('PlShell %s (%s) returned ... ' % (name, actual_name))
+ logger.debug('PlShell {} ({}) returned -> {}'
+ .format(name, actual_name, result))
return result
return func