logjam_agent 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,4 +15,6 @@ module LogjamAgent
15
15
  mattr_accessor :application_name
16
16
  self.application_name = "rails"
17
17
 
18
+ mattr_accessor :disabled
19
+ self.disabled = false
18
20
  end
@@ -24,7 +24,7 @@ module LogjamAgent
24
24
 
25
25
  # TODO: mutex!
26
26
  def send(msg, engine)
27
- return if paused?
27
+ return if paused? || Logjam.disabled
28
28
  begin
29
29
  # $stderr.puts msg
30
30
  key = @config[:routing_key]
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stefan Kaes
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-28 00:00:00 +02:00
18
+ date: 2011-08-29 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency