我将 NewRelic 插入了我的应用程序,每当我在 Heroku 上运行 rake 任务时,我都会得到以下输出作为日志记录的一部分。其中似乎没有任何特别有用的信息或可操作的内容(除了可能在某个时候设置 SSL),所以我想知道每次运行 rake 时禁用输出的最佳方法是什么。
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Starting the New Relic agent in "production" environment.
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : To prevent agent startup add a NEWRELIC_ENABLE=false environment variable or modify the "production" section of your newrelic.yml.
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Reading configuration from config/newrelic.yml
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] WARN : Agent is configured not to use SSL when communicating with New Relic's servers
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Enabling the Request Sampler.
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Enabling the Request Sampler.
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Environment: production
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Dispatcher: thin
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Application: quickies
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Installing ActiveRecord instrumentation
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Installing Net instrumentation
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Installing deferred Rack instrumentation
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Installing Rails 3 Controller instrumentation
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Installing Rails 3.1/3.2 view instrumentation
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Installing Rails3 Error instrumentation
** [NewRelic][11/05/13 21:33:14 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Finished instrumentation
** [NewRelic][11/05/13 21:33:16 +0000 bdea8934-129f-424d-8fb8-8496711f2c74 (2)] INFO : Starting Agent shutdown