logstash-output-awslogs 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66fdfa1f573c2124d47a0fa6fe7520283b55d64c
4
- data.tar.gz: f31ebd44b0a4b584fb594651d08aa71c2814e9b2
3
+ metadata.gz: 29735655683e0bf0d17d8726372472e951cbfc3c
4
+ data.tar.gz: 81fe5f0b3430e382cd049984cde731332f676252
5
5
  SHA512:
6
- metadata.gz: 5604d859864682080ebecae322c1d7287efa1c5594e9886eab9959b669fe4b876b78e09268feff4c0a3a1fda1b1a5a694de4597d099114f2c84066c503235952
7
- data.tar.gz: ec2e7a4ca3e63ed2ad5f19533cb4fb7cc1861ccaab375a5df7b5c3a5f8fa3738415b8a0b4e9cd0c12a430b544d933644cf532f81f3826d31e42d83d563ccd100
6
+ metadata.gz: 5f35c56827166827987c39716260dd1435f2ac0d7071208e674e6cf27d1a6102c9ae24e4cbac3fb67fce978499f5ce15e9e66eec61b07ca0c5b522c2e7c23068
7
+ data.tar.gz: 22eadde7bcff23206e3c99d87c5b0545de942e7f348260f8831a490565b206fc75f5b6d092db15a0091d7f512561d79698532e2da525d6da67412fabed580b81
@@ -99,7 +99,7 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
99
99
  else
100
100
  begin
101
101
  @client.create_log_stream(ident_opts)
102
- until sequence_tokens[event_log_group_name][event_log_stream_name] do
102
+ until sequence_tokens[event_log_group_name].key?(event_log_stream_name) && !sequence_tokens[event_log_group_name][event_log_stream_name].to_s.empty?
103
103
  @client.describe_log_streams(log_group_name: event_log_group_name).each do |response|
104
104
  response.log_streams.each do |log_stream_data|
105
105
  sequence_tokens[event_log_group_name][log_stream_data.log_stream_name.to_s] = log_stream_data.upload_sequence_token.to_s
@@ -154,7 +154,7 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
154
154
  @logger.info('Logs throttling, retry')
155
155
  retry
156
156
  rescue Exception => e
157
- @logger.error("Err: #{e}; Opts: #{send_opts.each { |k,v| "#{k.to_s} : #{v.to_s}" }}")
157
+ @logger.error(e)
158
158
  end
159
159
  end
160
160
  end # def multi_receive_encoded
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-awslogs'
3
- s.version = '0.1.14'
3
+ s.version = '0.1.15'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'Writes events to AWS CloudWatch logs.'
6
6
  s.homepage = 'https://github.com/rickycook/logstash-output-awslogs'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-awslogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Klyba