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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f26908197e62e16b8730ee8d1df63b9210a548ec
|
4
|
+
data.tar.gz: 22c39119149cb53db1e9c60520331a6a454a80ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
|
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.
|
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-
|
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.
|
119
|
+
rubygems_version: 2.4.6
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: ''
|