]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
logging: enable flogging in more places, replace Node.log with flogging
authorBrian Warner <warner@allmydata.com>
Tue, 15 Jan 2008 04:16:58 +0000 (21:16 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 15 Jan 2008 04:16:58 +0000 (21:16 -0700)
src/allmydata/node.py
src/allmydata/test/test_helper.py

index 0d82777bd02fa3a5e9c82c2d83ec87952464831b..244a1e1d768c951b39daf8946b23854933e96779 100644 (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:
index 6f7217a62e455c9cd4238da6bba8f81347df77c1..cb5e707bfa31bc51c4ab4240f2843da86cf34814 100644 (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):