From f508b392a74b90f362f072fb060ae61a376cf838 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Thu, 5 Jun 2025 11:25:59 +0100 Subject: [PATCH] Chenge the logging message for deleting expired invocations to debug --- src/labthings_fastapi/actions/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/labthings_fastapi/actions/__init__.py b/src/labthings_fastapi/actions/__init__.py index 9eae866d..b6fbaf92 100644 --- a/src/labthings_fastapi/actions/__init__.py +++ b/src/labthings_fastapi/actions/__init__.py @@ -116,7 +116,7 @@ def status(self) -> InvocationStatus: ``running`` Currently in-progress ``completed`` Finished without error ``cancelled`` Thread stopped after a cancel request - ``error`` Exception occured in thread + ``error`` Exception occurred in thread ============== ============================================= """ with self._status_lock: @@ -312,7 +312,7 @@ def expire_invocations(self): if v.expiry_time is not None: if v.expiry_time < datetime.datetime.now(): to_delete.append(k) - logging.info(f"Deleting invocations {to_delete} as they have expired") + logging.debug(f"Deleting invocations {to_delete} as they have expired") for k in to_delete: del self._invocations[k]