Commit 56f2a5ce authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

log.fmt: _hideXXX variable names are not shown in output

parent b6f1e2e3
......@@ -88,7 +88,12 @@ def fmt(text, **kwargs):
else:
parts.append('{%s}' % part2[1])
else:
parts.append('%s%s:{%s}' % (part2[0], part2[1], part2[1]))
showName = part2[1] + ':'
if showName.startswith('_hide'):
showName = ''
if showName.startswith('self.'):
showName = showName[5:]
parts.append('%s%s{%s}' % (part2[0], showName, part2[1]))
text = ''.join(parts)
argdict = _getframe(1).f_locals
argdict.update(kwargs)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment