Created
December 6, 2011 00:31
-
-
Save bryanstearns/1436101 to your computer and use it in GitHub Desktop.
config/initializers/newrelic_stfu.rb
This file contains hidden or 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
# NewRelic really wants me to know when it's not running. I don't care. | |
module NewRelic | |
class Control | |
module Frameworks | |
class Rails | |
def log_with_quieting!(msg, level=:info) | |
log_without_quieting!(msg, level) \ | |
unless msg == "New Relic Agent not running." | |
end | |
alias_method_chain :log!, :quieting | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment