Skip to content

Commit f591033

Browse files
committed
object id
1 parent d370fef commit f591033

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/dfe/analytics/entities.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ module Entities
1010

1111
after_create_commit do
1212
extracted_attributes = DfE::Analytics.extract_model_attributes(self)
13+
object_id = self.object_id
1314
send_event('create_entity', extracted_attributes) if extracted_attributes.any?
14-
Rails.logger.info("Entity created with attributes: #{self}")
15+
Rails.logger.info("Entity created with attributes: #{self}, #{object_id}")
1516
Rails.logger.info("Entity created with attributes: #{extracted_attributes}")
1617
end
1718

0 commit comments

Comments
 (0)