Module: Flog::ParamsFormattable
- Includes:
- PayloadValueShuntable
- Defined in:
- lib/flog/params_formattable.rb
Overview
ParamsFormattable enables to format request parameters in log.
Instance Method Summary collapse
Methods included from PayloadValueShuntable
#shunt_if_key_already_exists, #shunt_if_key_not_exist, #shunt_payload_value
Instance Method Details
#start_processing(event) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/flog/params_formattable.rb', line 27 def start_processing(event) return super(event) unless formattable?(event) replaced = replace_params(event.payload[:params]) shunt_payload_value(event.payload, :params, replaced) do super(event) end end |