logjam_agent 0.19.6 → 0.20.0

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: d3e9ee6cdc1a809bf29b731ebe3358eea7f5156a
4
- data.tar.gz: 946d2bbbec2f4bdf8037e4ee300439f62e47a44f
3
+ metadata.gz: ffbc348a41b699fbc21851d6aaf0aa3c8c7146b4
4
+ data.tar.gz: d3ea3f038cc01a711e971b9c2a003566bd29fae0
5
5
  SHA512:
6
- metadata.gz: f9ffaa8555886011f9da3f17c278d3231309d3b3b4ed7bffa8899e886e353c43a4851c305115355bc15e2054f036b7ece4cd9fb3c83dc46a905250abb83fc15f
7
- data.tar.gz: d6973bc3c02a0444c43627e387953d825dd04fcabdebb6a579e239ffbe9ac0b5af663fdc2e6c18b964d7d53e2f9b944dd87be15a2d87aecc818816a616d1a208
6
+ metadata.gz: 016587a88a5cb0a035128ab5d1546338136bd6104bafe663cf758edd6fe48df79bc7a26f8b301a3a67fada38e63f929aa12529047a53e4d4a41e6487d8627df2
7
+ data.tar.gz: 2785a7e0288269b408e4774432dc33d92197574bb360f6e3712c497dca761f807526dcab6fb628ed7ed070b5f12530bdf1b52926b1f83727182c0a10e0c7ffa5
data/README.md CHANGED
@@ -40,11 +40,11 @@ module LogjamAgent
40
40
 
41
41
  # Configure request data forwarder for ZeroMQ. Default options as given below.
42
42
  # the host parameter can be a comma separted list of zmq connection specifictions,
43
- # where ths protocol prefix and port suffix are optional.
43
+ # where the protocol prefix and port suffix are optional.
44
44
  add_forwarder(:zmq,
45
45
  :host => "localhost",
46
46
  :port => 9605,
47
- :linger => 100,
47
+ :linger => 1000,
48
48
  :snd_hwm => 100)
49
49
 
50
50
  # Configure request data forwarder for AMQP.
@@ -61,6 +61,10 @@ module LogjamAgent
61
61
  # to debug asset request handling.
62
62
  self.ignore_asset_requests = Rails.env.development?
63
63
 
64
+ # Disable ActiveSupport::Notifications (and thereby logging) of ActionView
65
+ # render events. Defaults to false.
66
+ # self.ignore_render_events = Rails.env.production?
67
+
64
68
  # Configure log level for logging on disk: only lines with a log level
65
69
  # greater than or equal to the specified one will be logged to disk.
66
70
  # Defaults to Logger::INFO. Note that logjam_agent extends the standard
@@ -145,6 +145,9 @@ module LogjamAgent
145
145
  mattr_accessor :ignore_asset_requests
146
146
  self.ignore_asset_requests = false
147
147
 
148
+ mattr_accessor :ignore_render_events
149
+ self.ignore_render_events = false
150
+
148
151
  mattr_accessor :log_device_ignored_lines
149
152
  self.log_device_ignored_lines = nil
150
153
 
@@ -107,6 +107,12 @@ module LogjamAgent
107
107
  EVA
108
108
  end
109
109
 
110
+ config.after_initialize do
111
+ if LogjamAgent.ignore_render_events
112
+ ActiveSupport::Notifications.unsubscribe("render_template.action_view")
113
+ ActiveSupport::Notifications.unsubscribe("render_partial.action_view")
114
+ ActiveSupport::Notifications.unsubscribe("render_collection.action_view")
115
+ end
116
+ end
110
117
  end
111
118
  end
112
-
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.19.6"
2
+ VERSION = "0.20.0"
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.19.6
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-23 00:00:00.000000000 Z
11
+ date: 2016-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake