Skip to content

Commit 01db41f

Browse files
Merge pull request #104 from labthings/invocation-log-to-debug
Change the logging message for deleting expired invocations to debug
2 parents 371e2d7 + f508b39 commit 01db41f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/labthings_fastapi/actions/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def status(self) -> InvocationStatus:
116116
``running`` Currently in-progress
117117
``completed`` Finished without error
118118
``cancelled`` Thread stopped after a cancel request
119-
``error`` Exception occured in thread
119+
``error`` Exception occurred in thread
120120
============== =============================================
121121
"""
122122
with self._status_lock:
@@ -312,7 +312,7 @@ def expire_invocations(self):
312312
if v.expiry_time is not None:
313313
if v.expiry_time < datetime.datetime.now():
314314
to_delete.append(k)
315-
logging.info(f"Deleting invocations {to_delete} as they have expired")
315+
logging.debug(f"Deleting invocations {to_delete} as they have expired")
316316
for k in to_delete:
317317
del self._invocations[k]
318318

0 commit comments

Comments
 (0)