logjam_agent 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/logjam_agent/railtie.rb +5 -1
- data/lib/logjam_agent/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c27996c0dc000a98a9ca5297b79fce959c3acd01
|
4
|
+
data.tar.gz: b2c41b261e7c8bb2b030f16727925a6106663509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8d4cff43f66c427a1f410905fea537f0ee9ec11135ba2dd4420ec02c1126bdaa10dac320fb85974363bce2aff380686d6230bd53b8070b6719ebb398ba3da5b
|
7
|
+
data.tar.gz: 864d5f235fca16aa884f0e52ce06be74ed77a3a12a3042a155d6ec4671a812ec145dc4d109572aaeec182b17f4b387b099aba6d96ed105616581009bcc1602f7
|
data/README.md
CHANGED
@@ -45,16 +45,16 @@ module LogjamAgent
|
|
45
45
|
self.obfuscate_ips = true
|
46
46
|
|
47
47
|
# Configure cookie obfuscation. Defaults to [/_session\z/].
|
48
|
-
|
48
|
+
self.obfuscated_cookies = [/_session\z/]
|
49
49
|
|
50
50
|
# Configure asset request logging and forwarding. Defaults to ignore
|
51
51
|
# asset requests in development mode. Set this to false if you need
|
52
52
|
# to debug asset request handling.
|
53
|
-
|
53
|
+
self.ignore_asset_requests = Rails.env.development?
|
54
54
|
|
55
55
|
# Configure lines which will not be logged locally.
|
56
56
|
# They will still be sent to the logjam server. Defaults to nil.
|
57
|
-
|
57
|
+
self.log_device_ignored_lines = /^\s*Rendered/
|
58
58
|
|
59
59
|
# Configure maximum log line length. Defaults to 2048.
|
60
60
|
# This setting only applies to the lines sent with the request.
|
data/lib/logjam_agent/railtie.rb
CHANGED
@@ -49,7 +49,11 @@ module LogjamAgent
|
|
49
49
|
|
50
50
|
# install a default error handler for forwarding errors
|
51
51
|
log_dir = File.dirname(logjam_log_path(app))
|
52
|
-
|
52
|
+
begin
|
53
|
+
forwarding_error_logger = ::Logger.new("#{log_dir}/logjam_agent_error.log")
|
54
|
+
rescue StandardError
|
55
|
+
forwarding_error_logger = ::Logger.new(STDERR)
|
56
|
+
end
|
53
57
|
forwarding_error_logger.level = ::Logger::ERROR
|
54
58
|
forwarding_error_logger.formatter = ::Logger::Formatter.new
|
55
59
|
LogjamAgent.forwarding_error_logger = forwarding_error_logger
|
data/lib/logjam_agent/version.rb
CHANGED
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.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|