logjam_agent 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logjam_agent/amqp_forwarder.rb +1 -1
- data/lib/logjam_agent/request.rb +1 -1
- data/lib/logjam_agent/version.rb +1 -1
- data/lib/logjam_agent/zmq_forwarder.rb +8 -11
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb7dd078b4e735ccb32401f999b8c298b1cb6b4d
|
4
|
+
data.tar.gz: 632a1219c3214cdb0ff26a6891e0252eec598879
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 422bed88a1ac4314ed28054d9ac2eccdcbfeac08939db5ecd45f4d31f5ca8b199f7e6471d6e83cc42dd802ee2f6355e507babba268904906d0428673775560b9
|
7
|
+
data.tar.gz: 332cead3c74ab1f555cc36bf2e4dc95d2882e8eae94c6899db2ba3bd359fab09af7996e576e00ae0d7eb54e28aa8f05250d5094d4032e29dad1af206e222fc3b
|
data/lib/logjam_agent/request.rb
CHANGED
data/lib/logjam_agent/version.rb
CHANGED
@@ -58,18 +58,15 @@ module LogjamAgent
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def forward(msg, options={})
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
key
|
65
|
-
if engine = options[:engine]
|
66
|
-
key += ".#{engine}"
|
67
|
-
end
|
68
|
-
publish(app_env, key, msg)
|
69
|
-
rescue => error
|
70
|
-
reraise_expectation_errors!
|
71
|
-
raise ForwardingError.new(error.message)
|
61
|
+
app_env = options[:app_env] || @app_env
|
62
|
+
key = options[:routing_key] || "logs.#{app_env.sub('-','.')}"
|
63
|
+
if engine = options[:engine]
|
64
|
+
key += ".#{engine}"
|
72
65
|
end
|
66
|
+
publish(app_env, key, msg)
|
67
|
+
rescue => error
|
68
|
+
reraise_expectation_errors!
|
69
|
+
raise ForwardingError.new(error.message)
|
73
70
|
end
|
74
71
|
|
75
72
|
def publish(app_env, key, data)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logjam_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project: logjam_agent
|
112
|
-
rubygems_version: 2.4.
|
112
|
+
rubygems_version: 2.4.8
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Logjam client library to be used with logjam
|