class ChewyResque::LogSubscriber

Public Instance Methods

index(event) click to toggle source
# File lib/chewy_resque/log_subscriber.rb, line 9
def index(event)
  debug "ChewyResque index updated on #{event.payload[:index_name]} with ids #{event.payload[:ids]} - duration #{event.duration}"
end
logger() click to toggle source
# File lib/chewy_resque/log_subscriber.rb, line 17
def logger
  ChewyResque.logger
end
perform(event) click to toggle source
# File lib/chewy_resque/log_subscriber.rb, line 5
def perform(event)
  info "ChewyResque job ran on #{event.payload[:index_name]} with ids #{event.payload[:ids]} - duration #{event.duration}"
end
queue_jobs(event) click to toggle source
# File lib/chewy_resque/log_subscriber.rb, line 13
def queue_jobs(event)
  debug "ChewyResque queued jobs from #{event.payload[:class]} #{event.payload[:id]}"
end