From 616aa8a26ffd58fa28a2abb3479c6bc0a8fa45c7 Mon Sep 17 00:00:00 2001 From: shri Date: Wed, 4 Sep 2024 12:05:56 +0200 Subject: [PATCH] The objects in the log must be serializable --- src/app/domain/companies/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/domain/companies/services.py b/src/app/domain/companies/services.py index 72cf663e..3f58ddbe 100644 --- a/src/app/domain/companies/services.py +++ b/src/app/domain/companies/services.py @@ -68,7 +68,7 @@ async def create( fiftytwo_weeks_ago = now - timedelta(weeks=52) if count > 0 and results[0].updated_at > fiftytwo_weeks_ago: - await logger.ainfo("Company already exists and is up-to-date", company=results[0]) + await logger.ainfo("Company already exists and is up-to-date", id=results[0].id, url=results[0].url) return results[0] if obj.url: