logjam_agent 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/logjam_agent/rack/logger.rb +1 -1
- data/lib/logjam_agent/railtie.rb +1 -1
- data/lib/logjam_agent/version.rb +1 -1
- metadata +4 -4
@@ -74,7 +74,7 @@ module LogjamAgent
|
|
74
74
|
{}
|
75
75
|
end
|
76
76
|
|
77
|
-
HIDDEN_VARIABLES = /\A([a-z]|SERVER|PATH|GATEWAY|REQUEST|SCRIPT|REMOTE|QUERY|PASSENGER|DOCUMENT|SCGI|UNION_STATION|
|
77
|
+
HIDDEN_VARIABLES = /\A([a-z]|SERVER|PATH|GATEWAY|REQUEST|SCRIPT|REMOTE|QUERY|PASSENGER|DOCUMENT|SCGI|UNION_STATION|ORIGINAL_FULLPATH|RAW_POST_DATA)/o
|
78
78
|
|
79
79
|
TRANSLATED_VARIABLES = /\A(HTTP|CONTENT_LENGTH)/
|
80
80
|
|
data/lib/logjam_agent/railtie.rb
CHANGED
@@ -14,7 +14,7 @@ module LogjamAgent
|
|
14
14
|
begin
|
15
15
|
rails_version = Rails::VERSION::STRING
|
16
16
|
paths = app.config.paths
|
17
|
-
path = (rails_version < "3.
|
17
|
+
path = (rails_version < "3.1" ? paths.log.to_a : paths['log']).first.to_s
|
18
18
|
logger = LogjamAgent::BufferedLogger.new(path)
|
19
19
|
logger.level = ActiveSupport::BufferedLogger.const_get(app.config.log_level.to_s.upcase)
|
20
20
|
logger.formatter = LogjamAgent::SyslogLikeFormatter.new
|
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: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 3
|
10
|
+
version: 0.5.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: 2012-09-
|
18
|
+
date: 2012-09-19 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rake
|