Common: Use `simplify=True` in PydanticEventSerializer

This commit is contained in:
Mike Salvatore 2022-09-13 07:53:30 -04:00
parent 34e843f7f3
commit 780595cf19
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class PydanticEventSerializer(IEventSerializer, Generic[T]):
raise TypeError(f"Event object must be of type: {self._event_class.__name__}")
try:
return event.dict()
return event.dict(simplify=True)
except AttributeError as err:
logger.error(f"Error occured while serializing an event {event}: {err}")