logging: enable flogging in more places, replace Node.log with flogging

This commit is contained in:
Brian Warner 2008-01-14 21:16:58 -07:00
parent f664dcb489
commit cb76ed36f9
2 changed files with 6 additions and 3 deletions

View File

@ -208,7 +208,10 @@ class Node(service.MultiService):
os.path.join(self.basedir, "log_gatherer.furl"))
self.tub.setOption("bridge-twisted-logs", True)
def log(self, msg, src="", args=(), **kw):
def log(self, *args, **kwargs):
return tahoe_log.msg(*args, **kwargs)
def old_log(self, msg, src="", args=(), **kw):
if src:
logsrc = src
else:

View File

@ -24,8 +24,8 @@ class CHKUploadHelper_already_uploaded(offloaded.CHKUploadHelper):
return (res, None)
class FakeClient(service.MultiService):
def log(self, msg, **kwargs):
return log.msg(msg, **kwargs)
def log(self, *args, **kwargs):
return log.msg(*args, **kwargs)
def get_push_to_ourselves(self):
return True
def get_encoding_parameters(self):