]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
mutable.py: one more logging fix
authorBrian Warner <warner@allmydata.com>
Wed, 19 Dec 2007 06:42:41 +0000 (23:42 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 19 Dec 2007 06:42:41 +0000 (23:42 -0700)
src/allmydata/mutable.py

index 5d785a0e405890ec52138e96c4be9543a2ca1d73..49493255cc894e6f38ea2883d764fea68fe0ae04 100644 (file)
@@ -714,10 +714,12 @@ class Publish:
         num = self._node._client.log("Publish(%s): starting" % prefix)
         self._log_number = num
 
-    def log(self, msg):
+    def log(self, msg, parent=None):
         prefix = self._log_prefix
+        if parent is None:
+            parent = self._log_number
         num = self._node._client.log("Publish(%s): %s" % (prefix, msg),
-                                     parent=self._log_number)
+                                     parent=parent)
         return num
 
     def log_err(self, f):