until dev_utils spec_helper is changed to new method name, alias it.

Fixes #8117
This commit is contained in:
Guy Boertje 2017-08-31 20:18:16 +01:00
parent 3ce46f5473
commit 456f3c30f0

View file

@ -92,6 +92,9 @@ module LogStash
end
end
# until dev_utils/rspec/spec_helper is changed, we need to have both methods
singleton_class.send(:alias_method, :initialize, :reconfigure)
def self.get_logging_context
return LoggerContext.getContext(false)
end