lib/heavylog.rb in heavylog-0.0.19 vs lib/heavylog.rb in heavylog-0.0.20

- old
+ new

@@ -1,10 +1,11 @@ # frozen_string_literal: true require "heavylog/version" require "heavylog/formatters/raw" require "heavylog/formatters/json" +require "heavylog/formatters/ecs" require "heavylog/log_subscriber" require "heavylog/middleware" require "heavylog/ordered_options" require "heavylog/request_logger" require "heavylog/sidekiq_logger" @@ -134,10 +135,10 @@ request_start: RequestStore.store[:heavylog_request_start], ip: RequestStore.store[:heavylog_request_ip], messages: buffer.string.dup, }.merge(RequestStore.store[:heavylog_request_data] || {}) - formatted = Heavylog.formatter.call(request) + formatted = Heavylog.formatter.call(request.transform_keys(&:to_s)) Heavylog.logger.send(Heavylog.log_level, formatted) rescue StandardError => e config.error_handler&.(e) end