Skip to content

Commit

Permalink
Merge pull request #354 from alphagov/user-event-logging
Browse files Browse the repository at this point in the history
Fix logging for `UserEvents::Import`
  • Loading branch information
csutter authored Nov 28, 2024
2 parents 3d69d7c + 118adde commit 144693b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/services/discovery_engine/user_events/import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ def partition_date
end

def logger
@logger ||= Rails.logger.tagged(self.class.name, event_type, date)
@logger ||= ActiveSupport::TaggedLogging
.new(Rails.logger)
.tagged(self.class.name, "event_type=#{event_type}", "date=#{date}")
end
end
end

0 comments on commit 144693b

Please sign in to comment.