continue attempting to handle mysql hanging on queries, RT#10574
[freeside.git] / FS / bin / freeside-torrus-srvderive
index c368703..b9ea95b 100644 (file)
@@ -113,8 +113,6 @@ MAIN: while (1) {
     warn $ssql if $DEBUG > 2;
     my $sth = dbh->prepare($ssql) or die $DBI::errstr; #better recovery here?
 
-    warn "executing search\n" if $DEBUG;
-
     eval {
       my $h = set_sig_handler( 'ALRM', sub { die "_timeout\n"; } );
       alarm(10*60); #5*60); #$torrus_srvderive->last_srv_date ? 5*60 : 15*60);
@@ -134,7 +132,7 @@ MAIN: while (1) {
       die $@;
     }
 
-    warn "search executed; checking results\n" if $DEBUG;
+    warn "search finished; checking results\n" if $DEBUG;
 
     my $prev = 0;
     while ( my $row = $sth->fetchrow_arrayref ) {