Skip to content

Instantly share code, notes, and snippets.

@bryanstearns
Created December 6, 2011 00:31
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 bryanstearns/1436101 to your computer and use it in GitHub Desktop.
Save bryanstearns/1436101 to your computer and use it in GitHub Desktop.
config/initializers/newrelic_stfu.rb
# 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