lib/logtail-rails/logger.rb in logtail-rails-0.2.7 vs lib/logtail-rails/logger.rb in logtail-rails-0.2.8
- old
+ new
@@ -36,10 +36,10 @@
end
end
def stop_broadcasting_to(io_device_or_logger)
if is_a_logger?(io_device_or_logger)
- @extra_loggers.delete(logger)
+ @extra_loggers.delete(io_device_or_logger)
return
end
@extra_loggers = @extra_loggers.reject { |logger| ::ActiveSupport::Logger.logger_outputs_to?(logger, io_device_or_logger) }