From: Frank Lichtenheld Date: Mon, 20 Feb 2006 14:42:33 +0000 (+0000) Subject: Add an additional debug output to track $too_many_hits better X-Git-Tag: switch-to-templates~107 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=976d1881dc169228ed327cd52eba12d29bb9bf42;p=deb%2Fpackages.git Add an additional debug output to track $too_many_hits better --- diff --git a/lib/Packages/Search.pm b/lib/Packages/Search.pm index 9418f63..c0555e2 100644 --- a/lib/Packages/Search.pm +++ b/lib/Packages/Search.pm @@ -413,6 +413,7 @@ sub do_names_search { $postfixes->seq( $key, $prefixes, R_CURSOR ); while (index($key, $keyword) >= 0) { if ($prefixes =~ /^\001(\d+)/o) { + debug( "$key has too many hits", 2 ); $too_many_hits += $1; } else { foreach (split /\000/o, $prefixes) {