From 7700623b16deb581b025e44ffd83ebe8b82b4a45 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 13 Jan 2016 09:02:37 -0500 Subject: [PATCH] Move SQL debug to Execute --- scripts/ZoneMinder/lib/ZoneMinder/Filter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm b/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm index 8fd494b96..5a62d1e91 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm @@ -127,6 +127,7 @@ sub Execute { while( my $event = $sth->fetchrow_hashref() ) { push @results, $event; } + Debug($sql . ' returned ' . @results . ' events.' ); $sth->finish(); return @results; } @@ -359,7 +360,6 @@ sub Sql { { $sql .= " limit 0,".$filter_expr->{limit}; } - Debug( "SQL:$sql\n" ); $self->{Sql} = $sql; } # end if has Sql return $self->{Sql};