@@ -274,6 +274,7 @@ def context_menu_entry(self):
274274 def _record (self ):
275275 self .recording = not self .recording
276276 if self .recording :
277+ print ("Starting record in _record" )
277278 self .start_time = datetime .now ()
278279 self .current_filepath = Path (self .filename .parent ) / Path (
279280 f'{ self .filename .stem } _{ self .start_time .strftime ("%b-%d-%Y_%H%M%S" )} .{ self .file_extension } '
@@ -284,6 +285,7 @@ def _record(self):
284285 self .current_filepath , self .fourcc , self .fps , self .width , self .height
285286 )
286287 else :
288+ print ("Stopping record in _record" )
287289 if not self .current_filepath :
288290 return
289291 self .video_recorder_thread .stop ()
@@ -319,8 +321,10 @@ def _update_files(self):
319321 def _start_epics_record (self , ** kwargs ):
320322 if kwargs ["pvname" ] == self .epics_pv_name :
321323 if kwargs ["value" ] == 1 and not self .recording :
324+ print (f"{ self .epics_pv_name } : { kwargs ['value' ]} . START record action" )
322325 self .record_action .trigger ()
323326 elif kwargs ["value" ] == 0 and self .recording :
327+ print (f"{ self .epics_pv_name } : { kwargs ['value' ]} . STOP record action" )
324328 self .record_action .trigger ()
325329
326330 def read_settings (self , settings : Dict [str , Any ]):
0 commit comments