lib/slow/events/log_subscriber.rb in slow-events-0.1.0 vs lib/slow/events/log_subscriber.rb in slow-events-0.1.1

- old
+ new

@@ -1,6 +1,8 @@ # frozen_string_literal: true +require 'active_record/log_subscriber' + module Slow module Events class LogSubscriber < ::ActiveRecord::LogSubscriber def sql(event) return if event.duration < Slow::Events.config.alert_duration