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 +4 -4
- data/README.md +6 -2
- data/lib/logjam_agent.rb +3 -0
- data/lib/logjam_agent/railtie.rb +7 -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: ffbc348a41b699fbc21851d6aaf0aa3c8c7146b4
|
4
|
+
data.tar.gz: d3ea3f038cc01a711e971b9c2a003566bd29fae0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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 =>
|
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
|
data/lib/logjam_agent.rb
CHANGED
@@ -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
|
|
data/lib/logjam_agent/railtie.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
11
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|