From c8aa2758ffe4b508ea69ac3cfa6aedd819784c80 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 19 Nov 2025 16:41:50 -0500 Subject: [PATCH] Log what db event looks like --- scripts/zmaudit.pl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/zmaudit.pl.in b/scripts/zmaudit.pl.in index 0036b3192..9eeb911c8 100644 --- a/scripts/zmaudit.pl.in +++ b/scripts/zmaudit.pl.in @@ -494,8 +494,8 @@ MAIN: while( $loop ) { if ( ! defined( $db_events->{$fs_event_id} ) ) { # Long running zmaudits can find events that were created after we loaded all db events. # So do a secondary lookup - if ( ZoneMinder::Event->find_one(Id=>$fs_event_id) ) { - Debug("$$Event{Id} found in secondary lookup."); + if ( my $db_event = ZoneMinder::Event->find_one(Id=>$fs_event_id) ) { + Debug("$$Event{Id} found in secondary lookup.".$db_event->to_string()); next; } my $age = $Event->age();