From 27492fc088c4fabe8a7b2a2c48e91f2e93167a36 Mon Sep 17 00:00:00 2001 From: asansal Date: Fri, 27 Jun 2025 15:59:20 +0700 Subject: [PATCH] Add detailed logging for attendance processing: include start time and process details, and comment out end time log --- getdatadevicesbylogs.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/getdatadevicesbylogs.php b/getdatadevicesbylogs.php index 54adb4f..76eb177 100644 --- a/getdatadevicesbylogs.php +++ b/getdatadevicesbylogs.php @@ -84,9 +84,10 @@ class LogController if($rs){ $d=array(); while($rw=$rs->fetch()){ - echo "start time : ".date("Y-m-d H:i:s")."\n"; $d['timestamp']=date("Y-m-d H:i:s", strtotime($rw['dates'].' '.$rw['times'])); $d['id']=$rw['fingerid']; + echo "start time : ".date("Y-m-d H:i:s")." Process dates ".$d['timestamp'].", FingerId : ".$rw['fingerid']." \n"; + $res=$this->fn_setattendance($d, $rw['deviceip']); if($res){ $qryupdate="update tbl_attendancelogs set isprocess=1,processdate=now() where _idx='".$rw['_idx']."'"; @@ -713,7 +714,7 @@ class LogController } } - echo "end time : ".date("Y-m-d H:i:s")."\n"; + // echo "end time : ".date("Y-m-d H:i:s")."\n"; } $rtn=true; return $rtn;