Created
May 26, 2010 11:30
-
-
Save godfat/414369 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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