logjoy 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logjoy/log_subscribers/action_controller.rb +7 -1
- data/lib/logjoy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0b5ac3dadbcf215a5182e5a0e60515e9e933fcddd2765264e28c7fe0577b511
|
4
|
+
data.tar.gz: d2d3f46159cb7d301e5a0ff155d10563415b8cc0db3f876e1b639648ddd56b70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09e3b58f177a376bea00840a3421e9503bfb3e4353a849b5161b1e38ae086f9d01addddc3a26b33979a60daf359b3c728ce72cccc6e16c84999e4fd44fc98d38'
|
7
|
+
data.tar.gz: c5afe784fcf26a211ea1ac168135efbb92d867268169bc53f7ea19a51bd9f55c324abe416ba447e40bff3cb1e45e0f6151905511a01767cbc9c53eb531979866
|
@@ -13,7 +13,8 @@ module Logjoy
|
|
13
13
|
info do
|
14
14
|
payload = event.payload
|
15
15
|
|
16
|
-
log = payload.slice(:controller, :action, :format, :method, :
|
16
|
+
log = payload.slice(:controller, :action, :format, :method, :status)
|
17
|
+
log[:path] = strip_query(payload[:path])
|
17
18
|
log[:view_runtime] = rounded_ms(payload[:view_runtime])
|
18
19
|
log[:db_runtime] = rounded_ms(payload[:db_runtime])
|
19
20
|
log[:duration] = rounded_ms(event.duration)
|
@@ -37,6 +38,11 @@ module Logjoy
|
|
37
38
|
|
38
39
|
private
|
39
40
|
|
41
|
+
def strip_query(path_with_query)
|
42
|
+
uri = URI.parse(path_with_query)
|
43
|
+
uri.path
|
44
|
+
end
|
45
|
+
|
40
46
|
def ignore_event?(event)
|
41
47
|
Logjoy.filters.include?(event.payload[:path])
|
42
48
|
end
|
data/lib/logjoy/version.rb
CHANGED