From 19174adfa162e7ad616b435ce4ea8fc91d566678 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Thu, 13 Aug 2015 20:47:14 -0500 Subject: [PATCH] add frame_type to debug message --- src/zm_event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_event.cpp b/src/zm_event.cpp index 2655742a6..47d41d300 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -575,7 +575,7 @@ void Event::AddFrame( Image *image, struct timeval timestamp, int score, Image * if ( db_frame ) { - Debug( 1, "Adding frame %d of type \"%s\" to DB", frames ); + Debug( 1, "Adding frame %d of type \"%s\" to DB", frames, frame_type ); static char sql[ZM_SQL_MED_BUFSIZ]; snprintf( sql, sizeof(sql), "insert into Frames ( EventId, FrameId, Type, TimeStamp, Delta, Score ) values ( %d, %d, '%s', from_unixtime( %ld ), %s%ld.%02ld, %d )", id, frames, frame_type, timestamp.tv_sec, delta_time.positive?"":"-", delta_time.sec, delta_time.fsec, score ); if ( mysql_query( &dbconn, sql ) )