add a few additional optimizations to the callback receiver

This commit is contained in:
Ryan Petrello
2020-09-22 08:51:01 -04:00
parent b6afc085a7
commit b370e8389e
2 changed files with 10 additions and 4 deletions

View File

@@ -380,10 +380,11 @@ class BasePlaybookEvent(CreatedModifiedModel):
value = force_text(event_data.get(field, '')).strip()
if value != getattr(self, field):
setattr(self, field, value)
analytics_logger.info(
'Event data saved.',
extra=dict(python_objects=dict(job_event=self))
)
if settings.LOG_AGGREGATOR_ENABLED:
analytics_logger.info(
'Event data saved.',
extra=dict(python_objects=dict(job_event=self))
)
@classmethod
def create_from_data(cls, **kwargs):