Improve logging

This commit is contained in:
Raphaël Bournhonesque 2017-06-11 18:31:19 +02:00
parent 4289a21703
commit 1849a110e3

View File

@ -130,6 +130,10 @@ class DependencyTree(Tree):
pattern_root_node_attr = pattern[pattern_root_node]
dep_root_nodes = self.match_nodes(pattern_root_node_attr)
if not dep_root_nodes:
logger.debug("No node matches the pattern root "
"'{}'".format(pattern_root_node_attr))
matches = []
for candidate_root_node in dep_root_nodes:
match_list = subtree_in_graph(candidate_root_node, self,