From def9fc8cf0c818c2fd81588f12792d076c2d7277 Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Mon, 25 Aug 2008 14:44:07 -0700
Subject: [PATCH] checker: make the log() function of SimpleCHKFileVerifier
 compatible with the log() function of its superclasses and subclasses

---
 src/allmydata/immutable/checker.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/allmydata/immutable/checker.py b/src/allmydata/immutable/checker.py
index fa1d6afb..dfb912c1 100644
--- a/src/allmydata/immutable/checker.py
+++ b/src/allmydata/immutable/checker.py
@@ -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):
-- 
2.45.2