mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Use the .info level when printing the version notice for the plugin
Fixes #2429
This commit is contained in:
parent
d479015abb
commit
890c1bc3eb
2 changed files with 6 additions and 6 deletions
|
@ -220,12 +220,12 @@ module LogStash::Config::Mixin
|
|||
|
||||
if plugin_version < PLUGIN_VERSION_1_0_0
|
||||
if plugin_version < PLUGIN_VERSION_0_9_0
|
||||
@logger.warn(I18n.t("logstash.plugin.version.0-1-x",
|
||||
@logger.info(I18n.t("logstash.plugin.version.0-1-x",
|
||||
:type => @plugin_type,
|
||||
:name => @config_name,
|
||||
:LOGSTASH_VERSION => LOGSTASH_VERSION))
|
||||
else
|
||||
@logger.warn(I18n.t("logstash.plugin.version.0-9-x",
|
||||
@logger.info(I18n.t("logstash.plugin.version.0-9-x",
|
||||
:type => @plugin_type,
|
||||
:name => @config_name,
|
||||
:LOGSTASH_VERSION => LOGSTASH_VERSION))
|
||||
|
|
|
@ -42,7 +42,7 @@ describe LogStash::Plugin do
|
|||
.with(plugin_name)
|
||||
.and_return(double(:version => Gem::Version.new('1.0.0')))
|
||||
|
||||
expect_any_instance_of(Cabin::Channel).not_to receive(:warn)
|
||||
expect_any_instance_of(Cabin::Channel).not_to receive(:info)
|
||||
subject.validate({})
|
||||
end
|
||||
|
||||
|
@ -51,7 +51,7 @@ describe LogStash::Plugin do
|
|||
.with(plugin_name)
|
||||
.and_return(double(:version => Gem::Version.new('0.9.1')))
|
||||
|
||||
expect_any_instance_of(Cabin::Channel).to receive(:warn)
|
||||
expect_any_instance_of(Cabin::Channel).to receive(:info)
|
||||
.with(/Using version 0.9.x/)
|
||||
|
||||
subject.validate({})
|
||||
|
@ -62,7 +62,7 @@ describe LogStash::Plugin do
|
|||
.with(plugin_name)
|
||||
.and_return(double(:version => Gem::Version.new('0.1.1')))
|
||||
|
||||
expect_any_instance_of(Cabin::Channel).to receive(:warn)
|
||||
expect_any_instance_of(Cabin::Channel).to receive(:info)
|
||||
.with(/Using version 0.1.x/)
|
||||
subject.validate({})
|
||||
end
|
||||
|
@ -76,7 +76,7 @@ describe LogStash::Plugin do
|
|||
.with(plugin_name)
|
||||
.and_return(double(:version => Gem::Version.new('0.1.1')))
|
||||
|
||||
expect_any_instance_of(Cabin::Channel).to receive(:warn)
|
||||
expect_any_instance_of(Cabin::Channel).to receive(:info)
|
||||
.once
|
||||
.with(/Using version 0.1.x/)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue