lib/ahoy.rb in ahoy_matey-1.2.1 vs lib/ahoy.rb in ahoy_matey-1.2.2
- old
+ new
@@ -23,10 +23,13 @@
require "ahoy/stores/active_record_store"
require "ahoy/stores/active_record_token_store"
require "ahoy/stores/log_store"
require "ahoy/stores/fluentd_store"
require "ahoy/stores/mongoid_store"
+require "ahoy/stores/kinesis_firehose_store"
+require "ahoy/stores/bunny_store"
+require "ahoy/log_silencer"
require "ahoy/engine"
require "ahoy/warden" if defined?(Warden)
# background jobs
begin
@@ -89,12 +92,12 @@
# otherwise, we get SystemStackError: stack level too deep
begin
require "active_record/session_store/extension/logger_silencer"
rescue LoadError
require "ahoy/logger_silencer"
- Logger.send :include, Ahoy::LoggerSilencer
+ Logger.send(:prepend, Ahoy::LoggerSilencer)
begin
require "syslog/logger"
- Syslog::Logger.send :include, Ahoy::LoggerSilencer
+ Syslog::Logger.send(:prepend, Ahoy::LoggerSilencer)
rescue LoadError; end
end