# otherwise compare IP addresses;
# this might fail for any number of reasons, so let's harden that
try:
+ # xxx todo this seems to result in a DNS request for each incoming request to the AM
+ # should be cached or improved
url_ip=socket.gethostbyname(hostname)
local_ip=socket.gethostbyname(socket.gethostname())
if url_ip==local_ip: is_local=True
if not actual_name:
raise Exception, "Illegal method call %s for PL driver"%(name)
result=getattr(self.proxy, actual_name)(self.plauth, *args, **kwds)
- logger.debug('%s (%s) returned ... %s'%(name,actual_name,result))
+ logger.debug('PlShell %s (%s) returned ... '%(name,actual_name))
return result
return func