rails_semantic_logger 4.3.0 → 4.3.1

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: b63806087ae37b6ed3da41a1caf8414dddb0509b067cadf4583720fd2b397d0c
4
- data.tar.gz: 04a84700b26831870361b5664332f7bcade1d1e07a4c1cc0b2d243148adc9fff
3
+ metadata.gz: 934f14af66478e5e06804df98a16baa607daba3743c9216f519edeeff63c877c
4
+ data.tar.gz: dfbbd3867ea7022a79cfb4a03be13851b8933eba1a730d1502cf1408fb725a80
5
5
  SHA512:
6
- metadata.gz: 59e6c6bdf21d7587b20d3250a00d6f212c99a2ad58c018c832662cf468167dd64a88148d48d19b77b8ea73b4725650124b1e596adc043bec7d5b289919fe7f18
7
- data.tar.gz: 9836a2ccdd1107f38303e1180a2d6a2fc28945a8f963115126fd833fb4ff62a833bc78dc2ffb6209ee76f4794f5dd01e922ec000d5ada966201a03bd43b1d23b
6
+ metadata.gz: 293e1f77e70ef70643048a4210aea3da07822ffd1b8a99aee4cc9dce3c6de3ae0aeccde7fc6f83b0d38aa4600085f4cef6052f9e6b8bbacfe096f2142b0d341f
7
+ data.tar.gz: cc2eb88049270abfb844ebce2fd90d12cd5dcf199815cb98c7286cee7775102cfd447c3fb5e6f053780ec4b1c35c1758f768018b6ae0091404bbacba60176d66
@@ -41,6 +41,12 @@ module RailsSemanticLogger
41
41
  # Causes excessive log output with Rails 5 RC1
42
42
  payload.delete(:headers)
43
43
 
44
+ params = payload[:params]
45
+ if params
46
+ # When logging to JSON the entire tempfile is logged, so convert it to a string.
47
+ params['file'] = params['file'].inspect if params['file']
48
+ end
49
+
44
50
  {
45
51
  message: "Completed ##{payload[:action]}",
46
52
  duration: event.duration,
@@ -1,3 +1,3 @@
1
1
  module RailsSemanticLogger
2
- VERSION = '4.3.0'.freeze
2
+ VERSION = '4.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_semantic_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reid Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-07 00:00:00.000000000 Z
11
+ date: 2018-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails