From 3528d97bca02191cea884af5154e23ad666d0003 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 22 Feb 2007 17:45:43 +0000 Subject: [PATCH] Better logging for failed searches. --- lib/ZOOM/IRSpy/Test/Record/Fetch.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ZOOM/IRSpy/Test/Record/Fetch.pm b/lib/ZOOM/IRSpy/Test/Record/Fetch.pm index 3142974..d3cb7bd 100644 --- 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 @@ -38,7 +38,9 @@ sub completed_search { 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]; -- 1.7.10.4