lib/fluent/plugin/out_slack.rb in fluent-plugin-slack-0.5.2 vs lib/fluent/plugin/out_slack.rb in fluent-plugin-slack-0.5.3

- old
+ new

@@ -16,10 +16,11 @@ config_param :username, :string, default: 'fluentd' config_param :color, :string, default: 'good' config_param :icon_emoji, :string, default: nil config_param :icon_url, :string, default: nil config_param :auto_channels_create, :bool, default: false + config_param :https_proxy, :string, default: nil config_param :channel, :string config_param :channel_keys, default: nil do |val| val.split(',') end @@ -69,9 +70,13 @@ else raise Fluent::ConfigError.new("Either of `webhook_url` or `token` is required") end @slack.log = log @slack.debug_dev = log.out if log.level <= Fluent::Log::LEVEL_TRACE + + if @https_proxy + @slack.https_proxy = @https_proxy + end begin @message % (['1'] * @message_keys.length) rescue ArgumentError raise Fluent::ConfigError, "string specifier '%s' for `message` and `message_keys` specification mismatch"