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};