class TwitterWithAutoPagination::ASLogSubscriber

Public Instance Methods

cache_any(event) click to toggle source
# File lib/twitter_with_auto_pagination/log_subscriber.rb, line 65
def cache_any(event)
  return unless logger.debug?

  payload = event.payload
  name = "AS::#{payload[:name]} (#{event.duration.round(1)}ms)"
  name = color(name, MAGENTA, true)
  debug { "#{name} #{(payload.except(:name, :expires_in, :race_condition_ttl).inspect)}" }
end

Private Instance Methods

logger() click to toggle source
# File lib/twitter_with_auto_pagination/log_subscriber.rb, line 86
def logger
  Logging.logger
end