]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
checker: make the log() function of SimpleCHKFileVerifier compatible with the log...
authorZooko O'Whielacronx <zooko@zooko.com>
Mon, 25 Aug 2008 21:44:07 +0000 (14:44 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Mon, 25 Aug 2008 21:44:07 +0000 (14:44 -0700)
src/allmydata/immutable/checker.py

index fa1d6afb01681d6bc3ce6ad67aa9ea447e998121..dfb912c115b47f1c9df82e58836bcb23973d7e45 100644 (file)
@@ -243,12 +243,12 @@ class SimpleCHKFileVerifier(download.FileDownloader):
         num = self._client.log("SimpleCHKFileVerifier(%s): starting" % prefix)
         self._log_number = num
 
-    def log(self, msg, parent=None):
-        if parent is None:
-            parent = self._log_number
+    def log(self, msg, *args, **kwargs):
+        if not kwargs.get('parent'):
+            kwargs['parent'] = self._log_number
         return self._client.log("SimpleCHKFileVerifier(%s): %s"
                                 % (self._log_prefix, msg),
-                                parent=parent)
+                                *args, **kwargs)
 
 
     def start(self):