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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18d7116caaea6d515e1379e012a599cdfc5be1fc380ed049fbe9af0942156aba
4
- data.tar.gz: 68937fd8fcd5e02c5b151dd79693e7fc9282623516b15ce18c8c5eece09134a2
3
+ metadata.gz: c0b5ac3dadbcf215a5182e5a0e60515e9e933fcddd2765264e28c7fe0577b511
4
+ data.tar.gz: d2d3f46159cb7d301e5a0ff155d10563415b8cc0db3f876e1b639648ddd56b70
5
5
  SHA512:
6
- metadata.gz: c90722446495e9e127bed6a0d90b0dd40f51842e7eaa403645ceda2acc30c31d9c338a088a8a0842345ce7e97c6d73ae7432f741db711694521c692dbc0c17d6
7
- data.tar.gz: 9b4a01ccb3f7c7391eb43ecfff6ee79cd8f63f7e2b8bd62550df474bef719f2eb0ce879565224dfc6c51dcffc5b0d10274362ee00d4e60e7eccdea5971f34b8f
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, :path, :status)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Logjoy
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjoy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat McGee