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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5280a58a1c2c44ccacf015d14a112e8ad4875d6e
4
- data.tar.gz: 4fa82e320cf620961b277da6738d3ef3f7a1423f
3
+ metadata.gz: c27996c0dc000a98a9ca5297b79fce959c3acd01
4
+ data.tar.gz: b2c41b261e7c8bb2b030f16727925a6106663509
5
5
  SHA512:
6
- metadata.gz: d06732e50a957ace135f09e04dd5ee20d968b6265f49e1d21654818d0f5a43bbb8cbc2824ec88e1a32515dff952248d30f9c5c845a2f71c77d8c967f83cd57ed
7
- data.tar.gz: dde6c145c7fc906bb2de41b1dfff97d150924d36f81e52383e1314efa322bdf94d00e53ab4f300f1167300b9405898ce7c76c45b02b396c98ed2f9629cfea1c8
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
- # self.obfuscated_cookies = [/_session\z/]
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
- # self.ignore_asset_requests = Rails.env.development?
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
- # self.log_device_ignored_lines = /^\s*Rendered/
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.
@@ -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
- forwarding_error_logger = ::Logger.new("#{log_dir}/logjam_agent_error.log")
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
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2014-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake