Class: HubLink::Api::Logging

Inherits:
Faraday::Response::Middleware
  • Object
show all
Defined in:
lib/hub_link/api/logging.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



4
5
6
7
8
# File 'lib/hub_link/api/logging.rb', line 4

def call(env)
  message = "#{env[:method].upcase} #{env[:url]}".sub("https://api.github.com/repos", "")
  logger.info(UPDATE) { message }
  super
end