Skip to content

Commit

Permalink
Reduce logging from DfE::Analytics::SendEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
ddippolito committed Jan 31, 2025
1 parent b9aee52 commit 4ae4bf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@
config.semantic_logger.application = "" # No need to send the application name as logstash reads it from Cloud Foundry log tags
config.rails_semantic_logger.format = :json
config.rails_semantic_logger.add_file_appender = false
config.rails_semantic_logger.filter = proc { |log| log.name != "DfE::Analytics::SendEvents" }
config.rails_semantic_logger.filter = proc do |log|
log.message.exclude?("DfE::Analytics::SendEvents")
end

config.active_record.logger = nil # Don't log SQL in production
config.semantic_logger.backtrace_level = :error
config.semantic_logger.add_appender(io: $stdout,
Expand Down

0 comments on commit 4ae4bf1

Please sign in to comment.