Class: ActiveRecord::ConnectionAdapters::FiberedMonitor::LogSubscriber
- Inherits:
-
ActiveSupport::LogSubscriber
- Object
- ActiveSupport::LogSubscriber
- ActiveRecord::ConnectionAdapters::FiberedMonitor::LogSubscriber
- Defined in:
- lib/active_record/fiber_patches/log_subscriber.rb
Instance Method Summary collapse
Instance Method Details
#wait(event) ⇒ Object
5 6 7 8 |
# File 'lib/active_record/fiber_patches/log_subscriber.rb', line 5 def wait(event) return unless logger && logger.debug? logger.debug "waited " + (" (%.1fms)" % event.duration) + " for a #{event.payload[:resource]}" end |