Skip to content

Commit e7989fa

Browse files
committed
Restore original tracing
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent ff5d06d commit e7989fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/licensedcode/index.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,15 +504,18 @@ def match(self, location=None, query_string=None, min_score=0, detect_negative=T
504504
run_matches = []
505505
candidates = match_set.compute_candidates(query_run, self, rules_subset=rules_subset, top=40)
506506

507+
if TRACE: logger_debug(' #match: query_run: number of candidates for seq match #', len(candidates))
507508
if TRACE_CANDIDATES: logger_debug(' #match: query_run: number of candidates for seq match #', len(candidates))
508509

509510
for candidate_num, candidate in enumerate(candidates):
511+
if TRACE: logger_debug(' #match: query_run: seq matching candidate#:', candidate_num, 'candidate:', candidate[0], candidate[1])
510512
if TRACE_QUERY_RUN:
511513
_, canrule, _ = candidate
512514
logger_debug(' #match: query_run: seq matching candidate#:', candidate_num, 'candidate:', canrule)
513515
start_offset = 0
514516
while True:
515517
rule_matches = match_seq.match_sequence(self, candidate, query_run, start_offset=start_offset)
518+
if TRACE and rule_matches: self.debug_matches(rule_matches, ' #match: query_run: seq matches for candidate')
516519
if TRACE_QUERY_RUN and rule_matches:
517520
self.debug_matches(rule_matches, ' #match: query_run: seq matches for candidate', with_text=True, query=qry)
518521
if not rule_matches:

0 commit comments

Comments
 (0)