mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Use warn level instead of error level when a plugin is using the milestone method in the plugin
Fixes #2735
This commit is contained in:
parent
057238eb0f
commit
de27d9f0a0
2 changed files with 3 additions and 3 deletions
|
@ -137,7 +137,7 @@ module LogStash::Config::Mixin
|
|||
# inside the gemspec.
|
||||
def milestone(m = nil)
|
||||
@logger = Cabin::Channel.get(LogStash)
|
||||
@logger.error(I18n.t('logstash.plugin.deprecated_milestone', :plugin => config_name))
|
||||
@logger.warn(I18n.t('logstash.plugin.deprecated_milestone', :plugin => config_name))
|
||||
end
|
||||
|
||||
# Define a new configuration setting
|
||||
|
|
|
@ -93,8 +93,8 @@ describe LogStash::Plugin do
|
|||
end
|
||||
|
||||
|
||||
it 'logs an error if the plugin use the milestone option' do
|
||||
expect_any_instance_of(Cabin::Channel).to receive(:error)
|
||||
it 'logs a warning if the plugin use the milestone option' do
|
||||
expect_any_instance_of(Cabin::Channel).to receive(:warn)
|
||||
.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