Class: ActiveResource::DetailedLogSubscriber

Inherits:
ActiveSupport::LogSubscriber
  • Object
show all
Defined in:
lib/active_resource/detailed_log_subscriber.rb

Constant Summary collapse

VERSION_EOL_WARNING_HEADER =
'x-shopify-api-version-warning'
VERSION_DEPRECATION_HEADER =
'x-shopify-api-deprecated-reason'
SHOPIFY_ACCESS_TOKEN =
'X-Shopify-Access-Token'
FILTERED =
'[FILTERED]'

Instance Method Summary collapse

Instance Method Details

#loggerObject


14
15
16
# File 'lib/active_resource/detailed_log_subscriber.rb', line 14

def logger
  ActiveResource::Base.logger
end

#request(event) ⇒ Object


9
10
11
12
# File 'lib/active_resource/detailed_log_subscriber.rb', line 9

def request(event)
  log_request_response_details(event)
  warn_on_deprecated_header_or_version_eol_header(event)
end