diff --git a/api/src/opentrons/protocol_runner/legacy_context_plugin.py b/api/src/opentrons/protocol_runner/legacy_context_plugin.py index 7112d34ea2d..abb5eb6073d 100644 --- a/api/src/opentrons/protocol_runner/legacy_context_plugin.py +++ b/api/src/opentrons/protocol_runner/legacy_context_plugin.py @@ -20,6 +20,10 @@ from .thread_async_queue import ThreadAsyncQueue, QueueClosed +import logging +log = logging.getLogger(__name__) + + class LegacyContextPlugin(AbstractPlugin): """A ProtocolEngine plugin wrapping a legacy ProtocolContext. @@ -151,9 +155,11 @@ def _handle_legacy_command(self, command: LegacyCommand) -> None: Used as a broker callback, so this will run in the APIv2 protocol's thread. """ + log.debug("MAX: Handling legacy command.") pe_actions = self._legacy_command_mapper.map_command(command=command) for pe_action in pe_actions: self._actions_to_dispatch.put(pe_action) + log.debug("MAX: Done handling legacy command.") def _handle_labware_loaded(self, labware_load_info: LegacyLabwareLoadInfo) -> None: """Handle a labware load reported by the APIv2 protocol. @@ -198,7 +204,9 @@ async def _dispatch_all_actions(self) -> None: """ while True: try: + log.debug("MAX: Dispatching action in event loop.") action = await self._actions_to_dispatch.get_async() + log.debug("MAX: Done dispatching action in event loop.") except QueueClosed: break else: diff --git a/api/src/opentrons/protocols/context/protocol_api/instrument_context.py b/api/src/opentrons/protocols/context/protocol_api/instrument_context.py index fb5939d1a0d..813f279c2e2 100644 --- a/api/src/opentrons/protocols/context/protocol_api/instrument_context.py +++ b/api/src/opentrons/protocols/context/protocol_api/instrument_context.py @@ -21,6 +21,10 @@ from opentrons.protocols.context.well import WellImplementation +import logging +log = logging.getLogger(__name__) + + class InstrumentContextImplementation(AbstractInstrument): """Implementation of the InstrumentContext interface.""" @@ -102,9 +106,11 @@ def touch_tip( version=self._api_version, ) for edge in edges: + log.debug("MAX: About to do touch_tip movement.") self._protocol_interface.get_hardware().hardware.move_to( self._mount, edge, speed ) + log.debug("MAX: Done touch_tip movement.") def pick_up_tip( self,