lib/fluent/plugin/out_mail.rb in fluent-plugin-mail-0.2.1 vs lib/fluent/plugin/out_mail.rb in fluent-plugin-mail-0.2.2

- old
+ new

@@ -15,11 +15,11 @@ config_param :tag_key, :string, :default => 'tag' config_param :host, :string config_param :port, :integer, :default => 25 config_param :domain, :string, :default => 'localdomain' config_param :user, :string, :default => nil - config_param :password, :string, :default => nil + config_param :password, :string, :default => nil, :secret => true config_param :from, :string, :default => 'localhost@localdomain' config_param :to, :string, :default => '' config_param :cc, :string, :default => '' config_param :bcc, :string, :default => '' config_param :subject, :string, :default => 'Fluent::MailOutput plugin' @@ -98,10 +98,10 @@ # The old `key=value` format for old version compatibility def create_key_value_message(tag, time, record) values = [] - values << @out_keys.map do |key| + values = @out_keys.map do |key| case key when @time_key format_time(time, @time_format) when @tag_key tag