fluent-plugin-openstack 1.0.3 → 1.0.4
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/VERSION +1 -1
- data/lib/fluent/plugin/out_swift.rb +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e54a564221292f123081d084e0e6c727f4b17e336920dfda4bf3c7a5bfa13074
|
|
4
|
+
data.tar.gz: 1c5db2176566037579a330bc0aca4622a0fd19d53611ac699a0b88f58e2c25e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36f5258dd2a22e5a0862c64786c4ae48721f4e9138d6eb0677edd4a577b68c586ccbf2e0b7b55dddb43821e7729a6ac1554dfc0359e195bd219fcffc00359fbc
|
|
7
|
+
data.tar.gz: 67475166081c4eb359eac08a3a4eb19505f18e558a5853e5cc68a768ee1561dcb697116ea60d9b8326caee2aeaae0098574b10dc72f33b07bf22a9e2f2b857c0
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.4
|
|
@@ -108,6 +108,9 @@ module Fluent::Plugin
|
|
|
108
108
|
# For backward compatibility
|
|
109
109
|
# TODO: Remove time_slice_format when end of support compat_parameters
|
|
110
110
|
self.values_for_swift_object_chunk = {}
|
|
111
|
+
|
|
112
|
+
$log.warn("timekey_zone: #{timekey_zone}")
|
|
113
|
+
|
|
111
114
|
self.time_slice_with_tz = Fluent::Timezone.formatter(timekey_zone, config['time_slice_format'])
|
|
112
115
|
end
|
|
113
116
|
|
|
@@ -152,8 +155,6 @@ module Fluent::Plugin
|
|
|
152
155
|
end
|
|
153
156
|
|
|
154
157
|
begin
|
|
155
|
-
$stdout.write("stdout time_slice: #{time_slice}")
|
|
156
|
-
puts("puts time_slice: #{time_slice}")
|
|
157
158
|
$log.warn("time_slice: #{time_slice}")
|
|
158
159
|
$log.warn("index_format: #{index_format}")
|
|
159
160
|
|
|
@@ -164,10 +165,12 @@ module Fluent::Plugin
|
|
|
164
165
|
'%{path}' => path,
|
|
165
166
|
'%{file_extension}' => ext
|
|
166
167
|
}
|
|
168
|
+
# rubocop:disable Style/FormatString
|
|
167
169
|
values_for_swift_object_key_post = {
|
|
168
170
|
'%{time_slice}' => time_slice,
|
|
169
|
-
'%{index}' =>
|
|
171
|
+
'%{index}' => sprintf(index_format, i)
|
|
170
172
|
}.merge!(values_for_swift_object_chunk[chunk.unique_id])
|
|
173
|
+
# rubocop:enable Style/FormatString
|
|
171
174
|
|
|
172
175
|
$log.warn("values_for_swift_object_key_post: #{values_for_swift_object_key_post}")
|
|
173
176
|
|