【发布时间】:2013-07-19 03:58:49
【问题描述】:
我正在使用 sidekiq 管理视图,它是安装在 rails 应用程序内的 Sinatra 应用程序。当我点击管理面板查看我的后台作业时,我得到了很多关于资产的输出,例如:
16:36:57 web.1 | Started GET "/sidekiq" for 127.0.0.1 at 2013-07-18 16:36:57 -0700
16:36:57 web.1 |
16:36:57 web.1 |
16:36:57 web.1 | Started GET "/sidekiq/stylesheets/bootstrap.css" for 127.0.0.1 at 2013-07-18 16:36:57 -0700
16:36:57 web.1 |
16:36:57 web.1 |
16:36:57 web.1 | Started GET "/sidekiq/javascripts/application.js" for 127.0.0.1 at 2013-07-18 16:36:57 -0700
16:36:57 web.1 |
16:36:57 web.1 |
16:36:57 web.1 | Started GET "/sidekiq/stylesheets/application.css" for 127.0.0.1 at 2013-07-18 16:36:57 -0700
16:36:57 web.1 |
16:36:57 web.1 |
16:36:57 web.1 | Started GET "/sidekiq/javascripts/dashboard.js" for 127.0.0.1 at 2013-07-18 16:36:57 -0700
16:36:57 web.1 |
16:36:57 web.1 |
16:36:57 web.1 | Started GET "/sidekiq/images/status-sd8051fd480.png" for 127.0.0.1 at 2013-07-18 16:36:57 -0700
16:36:59 web.1 |
16:36:59 web.1 |
16:36:59 web.1 | Started GET "/sidekiq/retries" for 127.0.0.1 at 2013-07-18 16:36:59 -0700
16:36:59 web.1 |
16:36:59 web.1 |
16:36:59 web.1 | Started GET "/sidekiq/stylesheets/bootstrap.css" for 127.0.0.1 at 2013-07-18 16:36:59 -0700
16:36
有没有办法让我的 rails 日志不显示这个?或者把它放在一个单独的日志文件中?
【问题讨论】:
-
你找到什么了吗?我没有使用独角兽,所以下面的答案对我没有帮助。
标签: ruby-on-rails logging sinatra sidekiq