mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
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:
parent
49d22f9771
commit
a17011656d
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue