make FakeCanary more realistic

This commit is contained in:
Jean-Paul Calderone 2020-09-23 16:24:25 -04:00
parent f1bcf4eb07
commit e981fea007

View File

@ -159,9 +159,12 @@ class FakeCanary(object):
if self.ignore:
return
del self.disconnectors[marker]
def getRemoteTubID(self):
return None
def getPeer(self):
return "<fake>"
class LoggingServiceParent(service.MultiService):
def log(self, *args, **kwargs):
return log.msg(*args, **kwargs)