Class: ChewyKiqqer::LogSubscriber
- Inherits:
-
ActiveSupport::LogSubscriber
- Object
- ActiveSupport::LogSubscriber
- ChewyKiqqer::LogSubscriber
- Defined in:
- lib/chewy_kiqqer/log_subscriber.rb
Instance Method Summary collapse
Instance Method Details
#index(event) ⇒ Object
9 10 11 |
# File 'lib/chewy_kiqqer/log_subscriber.rb', line 9 def index(event) debug "ChewyKiqqer index updated on #{event.payload[:index_name]} with ids #{event.payload[:ids]} - duration #{event.duration}" end |
#logger ⇒ Object
17 18 19 |
# File 'lib/chewy_kiqqer/log_subscriber.rb', line 17 def logger ChewyKiqqer.logger end |
#perform(event) ⇒ Object
5 6 7 |
# File 'lib/chewy_kiqqer/log_subscriber.rb', line 5 def perform(event) info "ChewyKiqqer job ran on #{event.payload[:index_name]} with ids #{event.payload[:ids]} - duration #{event.duration}" end |
#queue_jobs(event) ⇒ Object
13 14 15 |
# File 'lib/chewy_kiqqer/log_subscriber.rb', line 13 def queue_jobs(event) debug "ChewyKiqqer queued jobs from #{event.payload[:class]} #{event.payload[:id]}" end |