From: Zooko O'Whielacronx Date: Mon, 25 Aug 2008 21:44:07 +0000 (-0700) Subject: checker: make the log() function of SimpleCHKFileVerifier compatible with the log... X-Git-Url: https://git.rkrishnan.org/%5B/index.php?a=commitdiff_plain;h=def9fc8cf0c818c2fd81588f12792d076c2d7277;p=tahoe-lafs%2Ftahoe-lafs.git checker: make the log() function of SimpleCHKFileVerifier compatible with the log() function of its superclasses and subclasses --- 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):