add frame_type to debug message
This commit is contained in:
parent
14dabb095c
commit
19174adfa1
|
@ -575,7 +575,7 @@ void Event::AddFrame( Image *image, struct timeval timestamp, int score, Image *
|
||||||
if ( db_frame )
|
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];
|
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 );
|
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 ) )
|
if ( mysql_query( &dbconn, sql ) )
|
||||||
|
|
Loading…
Reference in New Issue