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 +4 -4
- data/lib/metova/logger/railtie.rb +5 -0
- data/lib/metova/logger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d461ca0c9483a8cbfda04b3d6c8529ed3990b6b
|
4
|
+
data.tar.gz: 9d796ada3fe910a94005f51ae8a661eed4611411
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|