lib/logtail-rails/logger.rb in logtail-rails-0.2.5 vs lib/logtail-rails/logger.rb in logtail-rails-0.2.6

- old
+ new

@@ -15,14 +15,15 @@ elsif defined?(::LoggerSilence) include ::LoggerSilence end # Logtail::Logger also works as ActiveSupport::BroadcastLogger - def is_a?(clazz) - return true if clazz == ::ActiveSupport::BroadcastLogger + def kind_of?(clazz) + return true if defined?(::ActiveSupport::BroadcastLogger) && clazz == ::ActiveSupport::BroadcastLogger super(clazz) end + alias is_a? kind_of? def broadcasts [self] + @extra_loggers end