diff --git a/config/environments/production.rb b/config/environments/production.rb index f63318eb33..8d1e5500f1 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -50,10 +50,12 @@ # Logging config.rails_semantic_logger.add_file_appender = false config.rails_semantic_logger.format = CustomLogFormatter.new + config.rails_semantic_logger.filter = proc { |log| log.name != "DfE::Analytics::SendEvents" } config.semantic_logger.add_appender( io: $stdout, level: config.log_level, - formatter: CustomLogFormatter.new + formatter: CustomLogFormatter.new, + filter: config.rails_semantic_logger.filter ) config.active_record.logger = nil # Don't log SQL in production