Commit fe5c7ce3 authored by Vinay Sajip's avatar Vinay Sajip

Change to improve speed of _fixupChildren

parent 8eed8c34
......@@ -910,9 +910,12 @@ class Manager:
Ensure that children of the placeholder ph are connected to the
specified logger.
"""
#for c in ph.loggers:
name = alogger.name
namelen = len(name)
for c in ph.loggerMap.keys():
if string.find(c.parent.name, alogger.name) <> 0:
#The if means ... if not c.parent.name.startswith(nm)
#if string.find(c.parent.name, nm) <> 0:
if c.parent.name[:namelen] != name:
alogger.parent = c.parent
c.parent = alogger
......
Markdown is supported
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