fluent-plugin-sqs 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/fluent/plugin/in_sqs.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c999fdec11adda86dff1b9ec330d8f942df1b23
|
4
|
+
data.tar.gz: 8cfbcb31d727fb84b30f1da0b4c48d04c3f90454
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74ae54a886fb7a3375f12c501c404f284cb4ca46cea054684781715612590a0a789e4a756ac7312612bebc30678e8395b2ef40da39af84dda582f9ea169854f1
|
7
|
+
data.tar.gz: 3bd990bdbd70a82cd14179aeaf79d62c7bdc1d18af7581ea1ad8951fb8e804b02d36165072827e2268685896b290e4f9e6ac2eaaac28f7e0aa53ee0ecdc3aa14
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.3
|
data/lib/fluent/plugin/in_sqs.rb
CHANGED
@@ -5,6 +5,10 @@ module Fluent
|
|
5
5
|
class SQSInput < Input
|
6
6
|
Plugin.register_input('sqs', self)
|
7
7
|
|
8
|
+
unless method_defined?(:router)
|
9
|
+
define_method("router") { Fluent::Engine }
|
10
|
+
end
|
11
|
+
|
8
12
|
def initialize
|
9
13
|
super
|
10
14
|
end
|
@@ -60,7 +64,7 @@ module Fluent
|
|
60
64
|
record['url'] = message.queue.url.to_s
|
61
65
|
record['sender_id'] = message.sender_id.to_s
|
62
66
|
|
63
|
-
|
67
|
+
router.emit(@tag, Time.now.to_i, record)
|
64
68
|
end
|
65
69
|
rescue
|
66
70
|
$log.error "failed to emit or receive", :error => $!.to_s, :error_class => $!.class.to_s
|