mutable.py: one more logging fix

This commit is contained in:
Brian Warner 2007-12-18 23:42:41 -07:00
parent 22f9e8c55b
commit fc3574a654
1 changed files with 4 additions and 2 deletions

View File

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