mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Cleanup code around warnings around outputs with no workers allowed
Fixes #4391
This commit is contained in:
parent
e492ff3aba
commit
ad48e00340
2 changed files with 5 additions and 3 deletions
|
@ -74,10 +74,12 @@ module LogStash; class OutputDelegator
|
||||||
# The user has configured extra workers, but this plugin doesn't support it :(
|
# The user has configured extra workers, but this plugin doesn't support it :(
|
||||||
if worker_limits_overriden?
|
if worker_limits_overriden?
|
||||||
message = @klass.workers_not_supported_message
|
message = @klass.workers_not_supported_message
|
||||||
|
warning_meta = {:plugin => @klass.config_name, :worker_count => @config["workers"]}
|
||||||
if message
|
if message
|
||||||
@logger.warn(I18n.t("logstash.pipeline.output-worker-unsupported-with-message", :plugin => @klass.config_name, :worker_count => @config["workers"], :message => message))
|
warning_meta[:message] = message
|
||||||
|
@logger.warn(I18n.t("logstash.pipeline.output-worker-unsupported-with-message", warning_meta))
|
||||||
else
|
else
|
||||||
@logger.warn(I18n.t("logstash.pipeline.output-worker-unsupported", :plugin => @klass.config_name, :worker_count => @config["workers"], :message => message))
|
@logger.warn(I18n.t("logstash.pipeline.output-worker-unsupported", warning_meta))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -39,7 +39,7 @@ en:
|
||||||
output-worker-unsupported-with-message: >-
|
output-worker-unsupported-with-message: >-
|
||||||
%{plugin} output plugin: setting 'workers => %{worker_count}' is not
|
%{plugin} output plugin: setting 'workers => %{worker_count}' is not
|
||||||
supported by this plugin. I will continue working as if you had not set
|
supported by this plugin. I will continue working as if you had not set
|
||||||
this setting.
|
this setting. Reason: %{message}
|
||||||
plugin:
|
plugin:
|
||||||
deprecated_milestone: >-
|
deprecated_milestone: >-
|
||||||
%{plugin} plugin is using the 'milestone' method to declare the version
|
%{plugin} plugin is using the 'milestone' method to declare the version
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue