Skip to content

Commit

Permalink
fix: remove state logging where state is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaisberg authored and Gaisberg committed Jul 26, 2024
1 parent d55e061 commit 76fdd89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/program/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def _remove_from_running_items(self, item, service_name=""):
with self.mutex:
if item in self.running_items:
self.running_items.remove(item)
logger.log("PROGRAM", f"Item {item.log_string} finished running section {service_name} with state {item.state.value}" )
logger.log("PROGRAM", f"Item {item.log_string} finished running section {service_name}" )

def add_to_running(self, item, service_name):
if item is None:
Expand All @@ -296,7 +296,7 @@ def add_to_running(self, item, service_name):
self.running_items.append(item)
elif not isinstance(item, MediaItem):
self.running_items.append(item)
logger.log("PROGRAM", f"Item {item.log_string} started running section {service_name} with state {item.state.value}" )
logger.log("PROGRAM", f"Item {item.log_string} started running section {service_name}" )

def _process_future_item(self, future: Future, service: Service, orig_item: MediaItem) -> None:
"""Callback to add the results from a future emitted by a service to the event queue."""
Expand Down

0 comments on commit 76fdd89

Please sign in to comment.