Skip to content

Commit

Permalink
Back out use of custom formatter for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
billdueber committed Sep 26, 2024
1 parent cd1ba3f commit 8834027
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 3 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ class Application < Rails::Application
config.log_tags = {
ip: :remote_ip
}

config.rails_semantic_logger.format = Dromedary::AbbreviatedJsonFormat.new
# Just use the standard :json logger and worry about filtering on the receiving end
# config.rails_semantic_logger.format = Dromedary::AbbreviatedJsonFormat.new
config.rails_semantic_logger.format = :json
config.semantic_logger.add_appender(io: $stdout)

config.active_record.yaml_column_permitted_classes = [ActiveSupport::HashWithIndifferentAccess]
Expand Down
3 changes: 0 additions & 3 deletions lib/dromedary/abbreviated_json_format.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,5 @@ def process_info; end

def status_message; end

def params
super.reject { |k, v| %x(utf8 authenticity_token redirect db_runtime).include? k }
end
end
end

0 comments on commit 8834027

Please sign in to comment.