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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90661f240bf5c1fb3c326ecf2f95e7c5d1ed9049c71f58c8f982b4e16eba5903
4
- data.tar.gz: 07e1678a7a947eba4aa63edee0914759026a0e34525095c8e4f285d794ed167e
3
+ metadata.gz: ef1c163f606f4ff39547e838da0dead49bf4b3ec13824e17f97ab5bc43398e51
4
+ data.tar.gz: d3344d8049afb40f20786739a945ac1706ad47f41bed08f6939d5a827d6ffb5c
5
5
  SHA512:
6
- metadata.gz: 0e9ad2e6fd27e47be5f9f7808de85ba775a0c2e92400b1cb2ef7683ba68b88793440bcead1c5235375c9751cf6657bf3232f7ac5b5b48084e4721b500f40378b
7
- data.tar.gz: 298bd247f702952959f06bbdb85bca43e7c6c174da7352914c79048661d661c39c981172bb9ab477be096d3fccc6dbd6ffb883e705d872b84acfd1e42c862065
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Logjoy
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat McGee