fluent-plugin-cloudwatch-ingest 0.1.20 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -1
- data/lib/fluent/plugin/cloudwatch/ingest/version.rb +1 -1
- data/lib/fluent/plugin/in_cloudwatch_ingest.rb +8 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33f102eb9446eda134236177bf6295b51e10a612
|
4
|
+
data.tar.gz: 1cd4f6eba9d809cf61ba6d795717018fc0a4aaa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8aafc9a717b28c9279dbd2b93c586f05dd77ddd4bcb8d865a2a569659a0b9c7acdf1bd751ce271c4d222cd7e915931f283d8ad0dc1f3edf3231d5102917cae7
|
7
|
+
data.tar.gz: 9bb352879ffe0c265d1b267ee769df6b616f808d84304c6948d7113b3944bc80d48eb3ec580babfd1876f00276d7af575800d153ba91570b4f7005d21ec230bb
|
data/.rubocop.yml
CHANGED
@@ -127,8 +127,8 @@ module Fluent::Plugin
|
|
127
127
|
end
|
128
128
|
|
129
129
|
response.log_streams.each { |s| log_streams << s.log_stream_name }
|
130
|
-
break unless
|
131
|
-
next_token =
|
130
|
+
break unless response.next_token
|
131
|
+
next_token = response.next_token
|
132
132
|
rescue => boom
|
133
133
|
log.error("Unable to retrieve log streams for group #{log_group_name} with stream prefix #{log_stream_name_prefix}: #{boom}") # rubocop:disable all
|
134
134
|
log_streams = []
|
@@ -159,8 +159,12 @@ module Fluent::Plugin
|
|
159
159
|
# See if we have some stored state for this group and stream.
|
160
160
|
# If we have then use the stored forward_token to pick up
|
161
161
|
# from that point. Otherwise start from the start.
|
162
|
-
|
163
|
-
|
162
|
+
if state.store[group] && state.store[group][stream]
|
163
|
+
stream_token =
|
164
|
+
(state.store[group][stream] if state.store[group][stream])
|
165
|
+
else
|
166
|
+
stream_token = nil
|
167
|
+
end
|
164
168
|
|
165
169
|
begin
|
166
170
|
loop do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-cloudwatch-ingest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Pointer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|