mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
checker: make the log() function of SimpleCHKFileVerifier compatible with the log() function of its superclasses and subclasses
This commit is contained in:
parent
72268f2bfe
commit
def9fc8cf0
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user