nexus_semantic_logger 1.7.2 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 826285386a51e1104bebf139598b213525752499b53d42e76edad8b6bc635db3
4
- data.tar.gz: c761ecf11144f16044a0d3ff37438be3f6153bcc1d2ad6df258d5b6dec57e112
3
+ metadata.gz: 6fb8608fc5db931115c7c1398607eff97e56745183939261b1993ea10004e10e
4
+ data.tar.gz: 9b326b54b65bcd45a0f5a8fef49e4d0b0112710028996afcb957ff0113aae8ff
5
5
  SHA512:
6
- metadata.gz: e4cb33cfd5f4db4328b96d87188064bcd24e8a396cde803b9d4a162aa94fab6d9a94e7dd98604c1672074ff1d4c4facc8ea6c8e0a2acc7b1dce6ad2cabe9a051
7
- data.tar.gz: d1bd71f0c63c7d02b6b6242e274d6a9e61d8bbafc05b3b9fbb0362698678ac037318a179a43d8984c28686a3f8ace49a1479a5685417e156ac69b0b2f5312582
6
+ metadata.gz: f5d864a434d1499e2b0880b55f5969e2f0856e2625d9e20db54387b01610fea866cc09191276f2c2f5ff1601927f4a2a7140f42ca70993cf6f5c5499753c055e
7
+ data.tar.gz: 240f197160c496ac997ae2c5cd33a672d656b6bf6280318e7926d5cb593ecac40f794316a9090dfa7984273bff9ed987cf6ef689e20591a62690dd3b40b971c5
@@ -41,7 +41,8 @@ module NexusSemanticLogger
41
41
  logger.info('SemanticLogger initialised.', level: config.log_level)
42
42
 
43
43
  config.after_initialize do
44
- require("nexus_semantic_logger/extensions/action_dispatch/debug_exceptions") if defined?(::ActionDispatch::DebugExceptions)
44
+ require("nexus_semantic_logger/extensions/action_dispatch/debug_exceptions") if defined?(
45
+ ::ActionDispatch::DebugExceptions)
45
46
  end
46
47
  end
47
48
 
@@ -42,12 +42,10 @@ module NexusSemanticLogger
42
42
  rescue SystemStackError
43
43
  as_json_serialise_errors = []
44
44
  hash.keys.each do |key|
45
- begin
46
- hash[key].as_json
47
- rescue SystemStackError
48
- hash.delete(key)
49
- as_json_serialise_errors << key
50
- end
45
+ hash[key].as_json
46
+ rescue SystemStackError
47
+ hash.delete(key)
48
+ as_json_serialise_errors << key
51
49
  end
52
50
  hash[:as_json_serialise_errors] = as_json_serialise_errors
53
51
  hash.to_json
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Log actual exceptions, not a string representation
2
3
  require "action_dispatch"
3
4
 
@@ -17,4 +18,4 @@ module ActionDispatch
17
18
  end
18
19
  end
19
20
  end
20
- end
21
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module NexusSemanticLogger
3
- # Leave this as 1.7.2 in order for CI process to replace with the tagged version.
4
- VERSION = '1.7.2'
3
+ # Leave this as 1.7.3 in order for CI process to replace with the tagged version.
4
+ VERSION = '1.7.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexus_semantic_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johnathon Harris