logjam_agent 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/init.rb +2 -0
- data/lib/logjam_agent.rb +4 -1
- data/lib/logjam_agent/middleware.rb +3 -1
- data/lib/logjam_agent/version.rb +1 -1
- metadata +4 -4
data/init.rb
CHANGED
data/lib/logjam_agent.rb
CHANGED
@@ -13,7 +13,10 @@ module LogjamAgent
|
|
13
13
|
self.error_handler = lambda { |exception| }
|
14
14
|
|
15
15
|
mattr_accessor :application_name
|
16
|
-
self.application_name =
|
16
|
+
self.application_name = nil
|
17
|
+
|
18
|
+
mattr_accessor :environment_name
|
19
|
+
self.environment_name = nil
|
17
20
|
|
18
21
|
def self.disable!
|
19
22
|
self.disabled = true
|
@@ -15,7 +15,9 @@ module LogjamAgent
|
|
15
15
|
private
|
16
16
|
|
17
17
|
def start_request(env)
|
18
|
-
|
18
|
+
app_name = env["logjam_agent.application_name"] || LogjamAgent.application_name
|
19
|
+
env_name = env["logjam_agent.environment_name"] || LogjamAgent.environment_name
|
20
|
+
Rails.logger.start_request(app_name, env_name)
|
19
21
|
end
|
20
22
|
|
21
23
|
def finish_request(env)
|
data/lib/logjam_agent/version.rb
CHANGED
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:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.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-09-
|
18
|
+
date: 2011-09-12 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|