Skip to content

Commit

Permalink
add logger
Browse files Browse the repository at this point in the history
  • Loading branch information
goodviber committed Dec 18, 2024
1 parent ca61276 commit 8ea3eb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dfe/analytics/entities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ module Entities
updated_attributes = DfE::Analytics.extract_model_attributes(
self, saved_changes.transform_values(&:last)
)

Rails.logger.info("updated_attributes: #{updated_attributes}")
Rails.logger.info("model: #{self}")
allowed_attributes = DfE::Analytics.extract_model_attributes(self).deep_merge(updated_attributes)

send_event('update_entity', allowed_attributes) if updated_attributes.any?
Expand Down

0 comments on commit 8ea3eb3

Please sign in to comment.