Hide milestone confusing message to the user

This PR change the log level when a user load a plugin with a milestone
option to debug instead of warn.

Fixes: #4562

Fixes #4603
This commit is contained in:
Pier-Hugues Pellerin 2016-02-01 10:30:45 -05:00 committed by Suyog Rao
parent 49d22f9771
commit a17011656d
2 changed files with 2 additions and 2 deletions

View file

@ -147,7 +147,7 @@ module LogStash::Config::Mixin
# inside the gemspec.
def milestone(m = nil)
@logger = Cabin::Channel.get(LogStash)
@logger.warn(I18n.t('logstash.plugin.deprecated_milestone', :plugin => config_name))
@logger.debug(I18n.t('logstash.plugin.deprecated_milestone', :plugin => config_name))
end
# Define a new configuration setting

View file

@ -111,7 +111,7 @@ describe LogStash::Plugin do
it 'logs a warning if the plugin use the milestone option' do
expect_any_instance_of(Cabin::Channel).to receive(:warn)
expect_any_instance_of(Cabin::Channel).to receive(:debug)
.with(/stromae plugin is using the 'milestone' method/)
class LogStash::Filters::Stromae < LogStash::Filters::Base