logstash-mixin-rabbitmq_connection 2.4.1-java → 4.0.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -3
- data/CHANGELOG +0 -2
- data/Gemfile +2 -0
- data/lib/logstash/plugin_mixins/rabbitmq_connection.rb +5 -25
- data/logstash-mixin-rabbitmq_connection.gemspec +1 -1
- 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: d14c010de3a33eacb2fd8dfdac1dc653b708ab62
|
4
|
+
data.tar.gz: ef541fd7f1940edc4904ce1c494aa15218849a29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d643085c7b3a4680fca010854c0915428f3dbb0efe099de5c075f64ace9ef05e64299a6fa97293ca1e9b34c6add3d969d698afa64ef65e9cc3ca718f9aa9c9b8
|
7
|
+
data.tar.gz: 05e2880b2d61596e6bb52dc09425eb72f34235129ef1876fb8b27061f528e5ec273268dd88164d5513b41f412941d5c73cb78fe9124123881c7227316f30ef00
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
data/Gemfile
CHANGED
@@ -104,31 +104,11 @@ module LogStash
|
|
104
104
|
|
105
105
|
def connect!
|
106
106
|
@hare_info = connect() unless @hare_info # Don't duplicate the conn!
|
107
|
-
rescue MarchHare::Exception
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
# https://github.com/rabbitmq/rabbitmq-java-client/issues/100
|
113
|
-
#
|
114
|
-
# Best guess is to help the user understand that there is probably
|
115
|
-
# some kind of configuration problem causing the error, but we
|
116
|
-
# can't really offer any more detailed hints :\
|
117
|
-
"An unknown error occurred. RabbitMQ gave no hints as to the cause. Maybe this is a configuration error (invalid vhost, for example). I recommend checking the RabbitMQ server logs for clues about this failure."
|
118
|
-
else
|
119
|
-
e.message
|
120
|
-
end
|
121
|
-
|
122
|
-
if @logger.debug?
|
123
|
-
@logger.error("RabbitMQ connection error, will retry.",
|
124
|
-
:error_message => error_message,
|
125
|
-
:exception => e.class.name,
|
126
|
-
:backtrace => e.backtrace)
|
127
|
-
else
|
128
|
-
@logger.error("RabbitMQ connection error, will retry.",
|
129
|
-
:error_message => error_message,
|
130
|
-
:exception => e.class.name)
|
131
|
-
end
|
107
|
+
rescue MarchHare::Exception => e
|
108
|
+
@logger.error("RabbitMQ connection error, will retry.",
|
109
|
+
:message => e.message,
|
110
|
+
:exception => e.class.name,
|
111
|
+
:backtrace => e.backtrace)
|
132
112
|
|
133
113
|
sleep_for_retry
|
134
114
|
retry
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-mixin-rabbitmq_connection'
|
3
|
-
s.version = '
|
3
|
+
s.version = '4.0.0'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Common functionality for RabbitMQ plugins"
|
6
6
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-mixin-rabbitmq_connection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|