From 42be31ca8167d52e500dc3a68b29f9ea2b683bde Mon Sep 17 00:00:00 2001 From: j Date: Sun, 30 Oct 2022 12:36:21 +0100 Subject: [PATCH] log next step --- camera.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/camera.py b/camera.py index 03bfbb4..41c3c2d 100644 --- a/camera.py +++ b/camera.py @@ -229,6 +229,11 @@ class Camera: segment_t0 = time.time() if self.abort: return + print('next step %s at %s - %s' % ( + steps.index(step), + datetime.now().strftime('%Y-%m-%d_%H:%M:%S'), + json.dumps(step) + )) if isinstance(step, dict): if 'fast' in step or ('speed' in step and step['speed'] > 100): self.fast_preset(step.get('fast', step.get('preset')), True)