mutable.py: one more logging fix
This commit is contained in:
parent
22f9e8c55b
commit
fc3574a654
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue