projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d9fe44
)
Better logging for failed searches.
author
Mike Taylor
<mike@indexdata.com>
Thu, 22 Feb 2007 17:45:43 +0000
(17:45 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 22 Feb 2007 17:45:43 +0000
(17:45 +0000)
lib/ZOOM/IRSpy/Test/Record/Fetch.pm
patch
|
blob
|
history
diff --git
a/lib/ZOOM/IRSpy/Test/Record/Fetch.pm
b/lib/ZOOM/IRSpy/Test/Record/Fetch.pm
index
3142974
..
d3cb7bd
100644
(file)
--- a/
lib/ZOOM/IRSpy/Test/Record/Fetch.pm
+++ b/
lib/ZOOM/IRSpy/Test/Record/Fetch.pm
@@
-1,4
+1,4
@@
-# $Id: Fetch.pm,v 1.23 2007-02-13 16:49:14 mike Exp $
+# $Id: Fetch.pm,v 1.24 2007-02-22 17:45:43 mike Exp $
# See the "Main" test package for documentation
# See the "Main" test package for documentation
@@
-38,7
+38,9
@@
sub completed_search {
my($conn, $task, $udata, $event) = @_;
my $n = $task->{rs}->size();
my($conn, $task, $udata, $event) = @_;
my $n = $task->{rs}->size();
- $conn->log("irspy_test", "Fetch test search found $n records");
+ $conn->log("irspy_test", "Fetch test search (", $task->{query}, ") ",
+ ref $event && $event->isa("ZOOM::Exception") ?
+ "failed: $event" : "found $n records (event=$event)");
if ($n == 0) {
my $qindex = $udata->{queryindex}+1;
my $q = $queries[$qindex];
if ($n == 0) {
my $qindex = $udata->{queryindex}+1;
my $q = $queries[$qindex];