Skip to content

Instantly share code, notes, and snippets.

@godfat
Created May 26, 2010 11:30
Show Gist options
  • Save godfat/414369 to your computer and use it in GitHub Desktop.
Save godfat/414369 to your computer and use it in GitHub Desktop.
# http://github.com/cardinalblue/rest-graph
# in controller:
def rest_graph_log duration, url
logger.debug("DEBUG: RestGraph: spent #{duration} requesting #{url}")
end
# and use this to enable logging:
def rest_graph_create
@rg = RestGraph.new(:error_handler => method(:rest_graph_authorize),
:log_handler => method(:rest_graph_log))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment