logjoy 0.1.0 → 0.2.0
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 +1 -2
- 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: ef1c163f606f4ff39547e838da0dead49bf4b3ec13824e17f97ab5bc43398e51
|
4
|
+
data.tar.gz: d3344d8049afb40f20786739a945ac1706ad47f41bed08f6939d5a827d6ffb5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a1b5d286379fbdaa60f2dd0b81d6a8258ccff40706ce37dfdd9e16c9b135a31ef6e6048e1cc6ff9d22bc6fe9298ce1ee2f6ef6a6bd1a411af7e9349524d0344
|
7
|
+
data.tar.gz: a7cf2a4837f14532ce79591b271eab83a3074e818657e44fc564221f74741d210fee001dd5464f27bfb0508c589bf5d2b1dbaa5cf74cc3cc8f42045cb9cb8f05
|
@@ -19,14 +19,13 @@ module Logjoy
|
|
19
19
|
log[:request_id] = payload[:request].request_id
|
20
20
|
log[:event] = event.name
|
21
21
|
log[:allocations] = event.allocations
|
22
|
-
log[:custom] = Logjoy.custom_fields(event) if Logjoy.customizer.present?
|
23
22
|
|
24
23
|
if log[:status].nil? && (exception_class_name = payload[:exception]&.first)
|
25
24
|
log[:exception] = exception_class_name
|
26
25
|
log[:status] = ::ActionDispatch::ExceptionWrapper.status_code_for_exception(exception_class_name)
|
27
26
|
end
|
28
27
|
|
29
|
-
log.to_json
|
28
|
+
log.merge(Logjoy.custom_fields(event)).to_json
|
30
29
|
end
|
31
30
|
end
|
32
31
|
|
data/lib/logjoy/version.rb
CHANGED