Module: Ethon::Easy::Operations

Defined in:
lib/http_event_logger/adapter/ethon.rb

Instance Method Summary collapse

Instance Method Details

#perform_with_loggingObject


29
30
31
32
33
34
35
36
# File 'lib/http_event_logger/adapter/ethon.rb', line 29

def perform_with_logging
  result = nil
  time_taken_in_seconds = ::Benchmark.realtime do
    result = perform_without_logging
  end
  create_response_event(time_taken_in_seconds)
  result
end