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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 123f61f59722d0577eef1875ed53866c2b550e55
4
- data.tar.gz: 63fdabfc535c0efa652f41457f4a0abdfada5c90
3
+ metadata.gz: eb7dd078b4e735ccb32401f999b8c298b1cb6b4d
4
+ data.tar.gz: 632a1219c3214cdb0ff26a6891e0252eec598879
5
5
  SHA512:
6
- metadata.gz: d74becfed4e7fb8b03a461b100a62c4f371f70753776d726c7de4d43552cad7f27997198d3eddf85e9baed38510e2e98f84c32522a264d27c36d5e0c16bd9588
7
- data.tar.gz: fe092f147ac1245f7801d9b97310ba09eea2a2c238e8460395286db571ae6ceaad88ad69c8e2f0ae42bac9e05704262e64e7f81408273fd85244866623b769db
6
+ metadata.gz: 422bed88a1ac4314ed28054d9ac2eccdcbfeac08939db5ecd45f4d31f5ca8b199f7e6471d6e83cc42dd802ee2f6355e507babba268904906d0428673775560b9
7
+ data.tar.gz: 332cead3c74ab1f555cc36bf2e4dc95d2882e8eae94c6899db2ba3bd359fab09af7996e576e00ae0d7eb54e28aa8f05250d5094d4032e29dad1af206e222fc3b
@@ -29,7 +29,7 @@ module LogjamAgent
29
29
 
30
30
  # TODO: mutex!
31
31
  def forward(msg, options = {})
32
- return if paused? || LogjamAgent.disabled
32
+ return if paused?
33
33
  begin
34
34
  app_env = options[:app_env] || @app_env
35
35
  key = options[:routing_key] || "logs.#{app_env.sub('-','.')}"
@@ -78,7 +78,7 @@ module LogjamAgent
78
78
  end
79
79
 
80
80
  def forward
81
- return if @ignored
81
+ return if @ignored || LogjamAgent.disabled
82
82
  engine = @fields.delete(:engine)
83
83
  # puts @fields.inspect
84
84
  @forwarder.forward(LogjamAgent.encode_payload(@fields), :engine => engine)
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.13.2"
2
+ VERSION = "0.13.3"
3
3
  end
@@ -58,18 +58,15 @@ module LogjamAgent
58
58
  end
59
59
 
60
60
  def forward(msg, options={})
61
- return if LogjamAgent.disabled
62
- begin
63
- app_env = options[:app_env] || @app_env
64
- key = options[:routing_key] || "logs.#{app_env.sub('-','.')}"
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.2
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-05-08 00:00:00.000000000 Z
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.6
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