mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
logging: enable flogging in more places, replace Node.log with flogging
This commit is contained in:
parent
f664dcb489
commit
cb76ed36f9
@ -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:
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user