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__))