logjam_agent 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/logjam_agent.rb CHANGED
@@ -15,6 +15,14 @@ module LogjamAgent
15
15
  mattr_accessor :application_name
16
16
  self.application_name = "rails"
17
17
 
18
+ def self.disable!
19
+ self.disabled = true
20
+ end
21
+
22
+ def self.enable!
23
+ self.disabled = false
24
+ end
25
+
18
26
  mattr_accessor :disabled
19
27
  self.disabled = false
20
28
  end
@@ -24,7 +24,7 @@ module LogjamAgent
24
24
 
25
25
  # TODO: mutex!
26
26
  def send(msg, engine)
27
- return if paused? || Logjam.disabled
27
+ return if paused? || LogjamAgent.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.3"
2
+ VERSION = "0.0.4"
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: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stefan Kaes