lib/loggable/railtie.rb in researchable_loggable-1.3.0 vs lib/loggable/railtie.rb in researchable_loggable-1.3.1

- old
+ new

@@ -40,9 +40,11 @@ }, status: response_code } end config.lograge.custom_options = lambda do |event| + return if event.payload[:params].blank? + exceptions = %w[controller action format id] { params: event.payload[:params].except(*exceptions) } end config.lograge.formatter = Loggable::Lograge::Formatter.new if production_like end