From f9cf0724099c3846997b32d84e505bea3290e1ff Mon Sep 17 00:00:00 2001 From: Geoffrey Date: Fri, 19 Jul 2024 11:08:31 -0500 Subject: [PATCH] Added stopRecord functionality to OENetworkLogger --- pybehave/Events/OENetworkLogger.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pybehave/Events/OENetworkLogger.py b/pybehave/Events/OENetworkLogger.py index e75f0ae..3dcc630 100644 --- a/pybehave/Events/OENetworkLogger.py +++ b/pybehave/Events/OENetworkLogger.py @@ -79,6 +79,8 @@ def log_events(self, events: collections.deque[LoggerEvent]) -> None: self.send_string("startRecord RecDir={} prependText={} appendText={}".format(event.event.metadata["rec_dir"] if "rec_dir" in event.event.metadata else "", event.event.metadata["pre"] if "pre" in event.event.metadata else "", event.event.metadata["app"] if "app" in event.event.metadata else "")) + elif event.event.metadata['message_type'] == 'stopRecord': + self.send_string("stopRecord") else: self.send_string(self.format_event(event, type(event.event).__name__))