Created
May 19, 2015 17:04
-
-
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
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
# 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