Skip to content

Instantly share code, notes, and snippets.

@barmintor
Created May 19, 2015 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barmintor/43f9b1ce4f038df562fb to your computer and use it in GitHub Desktop.
Save barmintor/43f9b1ce4f038df562fb to your computer and use it in GitHub Desktop.
Set a log level for ActiveFedora 7.x benchmarking in a Rake task
# initialize the fedora connection if necessary
connection = (ActiveFedora::Base.fedora_connection[0] ||= ActiveFedora::RubydoraConnection.new(ActiveFedora.config.credentials)).connection
# the logger accessor is private
(connection.api.send :logger).level = Logger::INFO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment