Skip to content

Commit

Permalink
The objects in the log must be serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
shri committed Sep 4, 2024
1 parent 56dda75 commit 616aa8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/domain/companies/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 616aa8a

Please sign in to comment.