MCPcopy Create free account
hub / github.com/logpai/logparser / printTree

Method printTree

logparser/Spell/Spell.py:234–248  ·  view source on GitHub ↗
(self, node, dep)

Source from the content-addressed store, hash-verified

232 )
233
234 def printTree(self, node, dep):
235 pStr = ""
236 for i in xrange(dep):
237 pStr += "\t"
238
239 if node.token == "":
240 pStr += "Root"
241 else:
242 pStr += node.token
243 if node.logClust is not None:
244 pStr += "-->" + " ".join(node.logClust.logTemplate)
245 print(pStr + " (" + str(node.templateNo) + ")")
246
247 for child in node.childD:
248 self.printTree(node.childD[child], dep + 1)
249
250 def parse(self, logname):
251 starttime = datetime.now()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected