From e721bbbfb230d9722e577c81955a8341a21ae545 Mon Sep 17 00:00:00 2001 From: pmoegenburg Date: Wed, 17 Jul 2024 17:02:05 -0400 Subject: [PATCH] fix(api): modify ZeroLengthMoveError logging from warning to debug level (#15697) # Overview ZeroLengthMoveErrors are now superfluous, and we see lots of them in api logs. This gets rid of them in default api logs by downgrading their logging level from warning to debug. # Test Plan # Changelog # Review requests # Risk assessment --- api/src/opentrons/hardware_control/backends/ot3controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/opentrons/hardware_control/backends/ot3controller.py b/api/src/opentrons/hardware_control/backends/ot3controller.py index 5bdb1621066..e23cbcdd8c3 100644 --- a/api/src/opentrons/hardware_control/backends/ot3controller.py +++ b/api/src/opentrons/hardware_control/backends/ot3controller.py @@ -643,7 +643,7 @@ async def move( origin=origin, target_list=[move_target] ) except ZeroLengthMoveError as zme: - log.warning(f"Not moving because move was zero length {str(zme)}") + log.debug(f"Not moving because move was zero length {str(zme)}") return moves = movelist[0] log.info(f"move: machine {target} from {origin} requires {moves}")