metova-logger 0.0.4 → 0.0.5

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: 46ffaf9ecf28c8c12cbfdc08537a41e1be9677f6
4
- data.tar.gz: 16ce356bebf6b089f485206636d4b19e5ec2c4c8
3
+ metadata.gz: 0d461ca0c9483a8cbfda04b3d6c8529ed3990b6b
4
+ data.tar.gz: 9d796ada3fe910a94005f51ae8a661eed4611411
5
5
  SHA512:
6
- metadata.gz: faf399f5bb7382f5e3063a5e36078284ba509b855be35c19c1cd065e3cefe14cec18eabfcac7da6e4f9da519baebceb2335f7fd5b0e4ff81d129a15af2b5c584
7
- data.tar.gz: 991cd1c28b5a02c93eca3b45d0f3bec6d87e5a4907f49a4ce865075a1998c619cf08d6d508812ab5c5817fd5821584ed0dda84b1573c0599f2b1f012f137c17c
6
+ metadata.gz: 92d042b9046b6e42723234ec31d93b5a12bd3ae85713485a6973741ba4d39244e47b269327ceafdb60b69009363dc308b02b321c5555829cbd074365027cf358
7
+ data.tar.gz: d6312bc35ffe909bd07e20d8af7beb4fd8393b082e2eba0e8a16d9d11807f9f1542cde9b9cb5d8d5c5f02a42c63c7a6a9b89abac4ee1de57a962cbaca173bc6a
@@ -13,10 +13,15 @@ module Metova
13
13
 
14
14
  config.lograge.enabled = true
15
15
  config.lograge.custom_options = lambda do |event|
16
+ params = event.payload[:params].reject do |k|
17
+ %w(controller action format).include? k
18
+ end
19
+
16
20
  {
17
21
  time: event.time,
18
22
  user: event.payload[:user],
19
23
  ip: event.payload[:ip],
24
+ params: "<PARAMS>#{params}</PARAMS>"
20
25
  }
21
26
  end
22
27
 
@@ -1,5 +1,5 @@
1
1
  module Metova
2
2
  module Logger
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metova-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logan Serman