Class: Filterameter::LogSubscriber
- Inherits:
-
ActiveSupport::LogSubscriber
- Object
- ActiveSupport::LogSubscriber
- Filterameter::LogSubscriber
- Defined in:
- lib/filterameter/log_subscriber.rb
Overview
# Log Subscriber
Class LogSubscriber provides instrumentation for events.
Instance Method Summary collapse
Instance Method Details
#undeclared_parameters(event) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/filterameter/log_subscriber.rb', line 15 def undeclared_parameters(event) debug do key = event.payload[:key] " Undeclared filter parameter: #{key}" end end |
#validation_failure(event) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/filterameter/log_subscriber.rb', line 8 def validation_failure(event) debug do errors = event.payload[:errors] ([' The following filter validation errors occurred:'] + errors.).join("\n - ") end end |