Skip to content

Commit

Permalink
Added stopRecord functionality to OENetworkLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
GWDiehl committed Jul 19, 2024
1 parent 2e9b989 commit f9cf072
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pybehave/Events/OENetworkLogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__))

Expand Down

0 comments on commit f9cf072

Please sign in to comment.