Sha256: 1c5f2ef52c07c709d6d35623356856a7f1729f6253f1bc7458097adaaca6d94f
Contents?: true
Size: 567 Bytes
Versions: 5
Compression:
Stored size: 567 Bytes
Contents
class ThinkingSphinx::ActiveRecord::LogSubscriber < ActiveSupport::LogSubscriber def guard(event) identifier = color 'Sphinx', GREEN, true warn " #{identifier} #{event.payload[:guard]}" end def message(event) identifier = color 'Sphinx', GREEN, true debug " #{identifier} #{event.payload[:message]}" end def query(event) identifier = color('Sphinx Query (%.1fms)' % event.duration, GREEN, true) debug " #{identifier} #{event.payload[:query]}" end end ThinkingSphinx::ActiveRecord::LogSubscriber.attach_to :thinking_sphinx
Version data entries
5 entries across 5 versions & 1 rubygems