process_handler 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 1a7e8287cb7879764b60415560c29e4eedd2c18c
4
- data.tar.gz: 9df1e39800c5e2ef0fc85760686601cde65c4430
3
+ metadata.gz: f26908197e62e16b8730ee8d1df63b9210a548ec
4
+ data.tar.gz: 22c39119149cb53db1e9c60520331a6a454a80ef
5
5
  SHA512:
6
- metadata.gz: 2f101636724b66567492daead2088e99a3a5d49d144ce0b3a3b41946113af874b201c88eaa7d4b102beed00ba49ba3e2f128677e2b516a17e64a302b0af7a610
7
- data.tar.gz: d1c3cf1c314d551a1ff7f618b50af6c1e2bc9b8c10a29b867a4c89689ac95edb41e5cc3b674947490b70b9619f3a09635f8efa45efb6587cc94902e5d2496a05
6
+ metadata.gz: 6d20b39c340efd15d4edb9aa07f0d74b4ec5533da853295c30849b5c4acbaed9ddb1ca760472a3b4d65997626f82cd697423fcb38dc655d9f2c00403f660990f
7
+ data.tar.gz: 3563a795203b6656d4e781d775d1d46e2ef416e1a81ac6ba74b5361d6077de6c879fbebdbfdbbc9e8957aa58939bb1e8e8091fd4a4156a902b70e3b611055cd9
@@ -170,10 +170,14 @@ module Salemove
170
170
  handle_exception(exception, input)
171
171
  end
172
172
 
173
+ PROCESSED_REQUEST_LOG_KEYS = [:error, :success]
174
+
173
175
  def delegate_to_service(input)
174
176
  request_id = input[:request_id]
175
177
  result = PivotProcess.benchmark(input) { @service.call(input) }
176
- PivotProcess.logger.info "Processed request", result.merge(request_id: request_id)
178
+ PivotProcess.logger.info(
179
+ "Processed request", result.select{|k, _| PROCESSED_REQUEST_LOG_KEYS.include?(k)}.merge(request_id: request_id)
180
+ )
177
181
  result
178
182
  end
179
183
 
@@ -1,5 +1,5 @@
1
1
  module Salemove
2
2
  module ProcessHandler
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: process_handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Indrek Juhkam
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 2.4.5.1
119
+ rubygems_version: 2.4.6
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: ''