質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

1回答

1325閲覧

Rails 4.2でログにCompletedの行が表示されない

vc3000

総合スコア196

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2015/10/02 01:42

ビューのレンダリングにかかった時間を知りたくてログを見たのですが、ログに

Completed in 453ms (View: 437, DB: 0) | 200 OK [http://localhost/hoges/]

のような行が一切含まれていませんでした。
Started GETSQL (156.4ms)のログは含まれています。

もともと他の人が作ったプロジェクトで、完全には把握していないのですが、
development、productionどちらも同じで、config.log_level = :debugと設定されています。
使っているgemは以下の通りです。

Web APIのアプリなのでgrapeとjbuilderを使っているのが関係しているのでは
という気がしますが、原因を調べるにはどうすればいいでしょうか?
あるいは、ビューにかかった時間を調べる方法はほかにありますでしょうか?

GEM remote: https://rubygems.org/ specs: actionmailer (4.2.3) actionpack (= 4.2.3) actionview (= 4.2.3) activejob (= 4.2.3) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 1.0, >= 1.0.5) actionpack (4.2.3) actionview (= 4.2.3) activesupport (= 4.2.3) rack (~> 1.6) rack-test (~> 0.6.2) rails-dom-testing (~> 1.0, >= 1.0.5) rails-html-sanitizer (~> 1.0, >= 1.0.2) actionview (4.2.3) activesupport (= 4.2.3) builder (~> 3.1) erubis (~> 2.7.0) rails-dom-testing (~> 1.0, >= 1.0.5) rails-html-sanitizer (~> 1.0, >= 1.0.2) activejob (4.2.3) activesupport (= 4.2.3) globalid (>= 0.3.0) activemodel (4.2.3) activesupport (= 4.2.3) builder (~> 3.1) activerecord (4.2.3) activemodel (= 4.2.3) activesupport (= 4.2.3) arel (~> 6.0) activerecord-postgis-adapter (3.0.0) activerecord (~> 4.2) rgeo-activerecord (~> 4.0) activesupport (4.2.3) i18n (~> 0.7) json (~> 1.7, >= 1.7.7) minitest (~> 5.1) thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) arel (6.0.2) axiom-types (0.1.1) descendants_tracker (~> 0.0.4) ice_nine (~> 0.11.0) thread_safe (~> 0.3, >= 0.3.1) builder (3.2.2) bullet (4.14.7) activesupport (>= 3.0.0) uniform_notifier (~> 1.9.0) capistrano (3.4.0) i18n rake (>= 10.0.0) sshkit (~> 1.3) capistrano-bundler (1.1.4) capistrano (~> 3.1) sshkit (~> 1.2) capistrano-rails (1.1.3) capistrano (~> 3.1) capistrano-bundler (~> 1.1) capistrano-rbenv (2.0.3) capistrano (~> 3.1) sshkit (~> 1.3) coderay (1.1.0) coercible (1.0.0) descendants_tracker (~> 0.0.1) coffee-rails (4.0.1) coffee-script (>= 2.2.0) railties (>= 4.0.0, < 5.0) coffee-script (2.4.1) coffee-script-source execjs coffee-script-source (1.9.1.1) colorize (0.7.7) database_cleaner (1.4.1) descendants_tracker (0.0.4) thread_safe (~> 0.3, >= 0.3.1) diff-lcs (1.2.5) equalizer (0.0.11) erubis (2.7.0) execjs (2.5.2) factory_girl (4.5.0) activesupport (>= 3.0.0) factory_girl_rails (4.5.0) factory_girl (~> 4.5.0) railties (>= 3.0.0) ffi (1.9.10) formatador (0.2.5) globalid (0.3.5) activesupport (>= 4.1.0) grape (0.12.0) activesupport builder hashie (>= 2.1.0) multi_json (>= 1.3.2) multi_xml (>= 0.5.2) rack (>= 1.3.0) rack-accept rack-mount virtus (>= 1.0.0) grape-jbuilder (0.2.0) grape (>= 0.3) i18n jbuilder tilt tilt-jbuilder (>= 0.4.0) guard (2.12.8) formatador (>= 0.2.4) listen (>= 2.7, <= 4.0) lumberjack (~> 1.0) nenv (~> 0.1) notiffany (~> 0.0) pry (>= 0.9.12) shellany (~> 0.0) thor (>= 0.18.1) guard-compat (1.2.1) guard-rspec (4.6.2) guard (~> 2.1) guard-compat (~> 1.1) rspec (>= 2.99.0, < 4.0) hashie (3.4.2) i18n (0.7.0) ice_nine (0.11.1) jbuilder (2.3.1) activesupport (>= 3.0.0, < 5) multi_json (~> 1.2) jquery-rails (4.0.4) rails-dom-testing (~> 1.0) railties (>= 4.2.0) thor (>= 0.14, < 2.0) json (1.8.3) json_expressions (0.8.3) kgio (2.9.3) listen (3.0.2) rb-fsevent (>= 0.9.3) rb-inotify (>= 0.9) loofah (2.0.2) nokogiri (>= 1.5.9) lumberjack (1.0.9) mail (2.6.3) mime-types (>= 1.16, < 3) method_source (0.8.2) mime-types (2.6.1) mini_portile (0.6.2) minitest (5.7.0) multi_json (1.11.2) multi_xml (0.5.5) nenv (0.2.0) net-scp (1.2.1) net-ssh (>= 2.6.5) net-ssh (2.9.2) nokogiri (1.6.6.2) mini_portile (~> 0.6.0) notiffany (0.0.6) nenv (~> 0.1) shellany (~> 0.0) pg (0.18.2) pry (0.10.1) coderay (~> 1.1.0) method_source (~> 0.8.1) slop (~> 3.4) pry-doc (0.8.0) pry (~> 0.9) yard (~> 0.8) pry-rails (0.3.4) pry (>= 0.9.10) rack (1.6.4) rack-accept (0.4.5) rack (>= 0.4) rack-cors (0.4.0) rack-mount (0.8.3) rack (>= 1.0.0) rack-test (0.6.3) rack (>= 1.0) rails (4.2.3) actionmailer (= 4.2.3) actionpack (= 4.2.3) actionview (= 4.2.3) activejob (= 4.2.3) activemodel (= 4.2.3) activerecord (= 4.2.3) activesupport (= 4.2.3) bundler (>= 1.3.0, < 2.0) railties (= 4.2.3) sprockets-rails rails-deprecated_sanitizer (1.0.3) activesupport (>= 4.2.0.alpha) rails-dom-testing (1.0.6) activesupport (>= 4.2.0.beta, < 5.0) nokogiri (~> 1.6.0) rails-deprecated_sanitizer (>= 1.0.1) rails-html-sanitizer (1.0.2) loofah (~> 2.0) railties (4.2.3) actionpack (= 4.2.3) activesupport (= 4.2.3) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) raindrops (0.14.0) rake (10.4.2) rb-fchange (0.0.6) ffi rb-fsevent (0.9.5) rb-inotify (0.9.5) ffi (>= 0.5.0) rdoc (4.2.0) json (~> 1.4) rgeo (0.3.20) rgeo-activerecord (4.0.0) activerecord (~> 4.2) rgeo (~> 0.3) rgeo-geojson (0.3.1) rgeo (~> 0.3) rspec (3.3.0) rspec-core (~> 3.3.0) rspec-expectations (~> 3.3.0) rspec-mocks (~> 3.3.0) rspec-core (3.3.2) rspec-support (~> 3.3.0) rspec-expectations (3.3.1) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.3.0) rspec-mocks (3.3.2) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.3.0) rspec-rails (3.3.3) actionpack (>= 3.0, < 4.3) activesupport (>= 3.0, < 4.3) railties (>= 3.0, < 4.3) rspec-core (~> 3.3.0) rspec-expectations (~> 3.3.0) rspec-mocks (~> 3.3.0) rspec-support (~> 3.3.0) rspec-support (3.3.0) sass (3.4.16) sass-rails (5.0.2) railties (>= 4.0.0, < 5.0) sass (~> 3.1) sprockets (>= 2.8, < 4.0) sprockets-rails (>= 2.0, < 4.0) tilt (~> 1.1) sdoc (0.4.1) json (~> 1.7, >= 1.7.7) rdoc (~> 4.0) shellany (0.0.1) slop (3.6.0) spring (1.3.6) sprockets (3.2.0) rack (~> 1.0) sprockets-rails (2.3.2) actionpack (>= 3.0) activesupport (>= 3.0) sprockets (>= 2.8, < 4.0) sshkit (1.7.1) colorize (>= 0.7.0) net-scp (>= 1.1.2) net-ssh (>= 2.8.0) thor (0.19.1) thread_safe (0.3.5) tilt (1.4.1) tilt-jbuilder (0.7.0) jbuilder tilt (>= 1.3.0, < 3) turbolinks (2.5.3) coffee-rails tzinfo (1.2.2) thread_safe (~> 0.1) uglifier (2.7.1) execjs (>= 0.3.0) json (>= 1.8.0) unicorn (4.9.0) kgio (~> 2.6) rack raindrops (~> 0.7) uniform_notifier (1.9.0) virtus (1.0.5) axiom-types (~> 0.1) coercible (~> 1.0) descendants_tracker (~> 0.0, >= 0.0.3) equalizer (~> 0.0, >= 0.0.9) yard (0.8.7.6) PLATFORMS ruby DEPENDENCIES activerecord-postgis-adapter bullet capistrano capistrano-bundler capistrano-rails capistrano-rbenv coffee-rails (~> 4.0.0) database_cleaner factory_girl_rails (~> 4.0) grape grape-jbuilder guard-rspec jbuilder (~> 2.0) jquery-rails json_expressions pg pry-doc pry-rails rack-cors rails (= 4.2.3) rb-fchange rb-fsevent rb-inotify rgeo-geojson rspec-rails sass-rails (~> 5.0.0) sdoc (~> 0.4.0) spring turbolinks uglifier (>= 1.3.0) unicorn

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

自己解決しました。
grapeを使っているとこのログが記録されなくなるようです。

投稿2015/10/05 02:32

vc3000

総合スコア196

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問