Method: Salemove::ProcessHandler::PivotProcess::ServiceSpawner#log_processed_request
- Defined in:
- lib/salemove/process_handler/pivot_process.rb
#log_processed_request(input, result) ⇒ Object
194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/salemove/process_handler/pivot_process.rb', line 194 def log_processed_request(input, result) attributes = result .select { |k, _| PROCESSED_REQUEST_LOG_KEYS.include?(k) } .merge(input) if @log_error_as_string attributes[:error] = attributes[:error].to_s if attributes.has_key?(:error) end @logger.info 'Processed request', attributes end |