2011-07-29 4 views
2

アプリケーションの開発開始以来、私のアプリケーションのdevelopment.logは決して動作していません。私はgithubから他のプロジェクトを引き出し、それらを実行し、ログは完全に正常に動作します。 SQL照会はサーバー・コンソールにも記録されません。あなたがどんな考えを持っているか、私は私に教えてください任意のコードを投稿したい場合は、SQLクエリが ログ(開発と製品の両方)とサーバー出力が作業レールでない3

を関与があるにもかかわらず、私は通常ちょうど

Started GET "/admins/queued_users/3" for 127.0.0.1 at 2011-07-29 15:16:46 -0700 
Processing by Admins::QueuedUsersController#show as HTML 
Parameters: {"id"=>"3"} 
Rendered admins/queued_users/show.html.erb within layouts/admin (18.5ms) 
Completed 200 OK in 120ms (Views: 53.2ms | ActiveRecord: 19.9ms) 

のようなものを参照してください。私は、ソリューションのためにどこでもオンラインで長い時間を探しました。私は削除し、log/development.logファイル、ログ全体のフォルダを再作成し、ファイル/フォルダとすべての777になるようにアクセス許可をリセットします。助けて!以下は

私gemfileはこの設定への割り当てのためのアプリケーション検索

GEM 
    remote: http://rubygems.org/ 
    specs: 
    abstract (1.0.0) 
    actionmailer (3.0.7) 
    actionpack (= 3.0.7) 
    mail (~> 2.2.15) 
    actionpack (3.0.7) 
    activemodel (= 3.0.7) 
    activesupport (= 3.0.7) 
    builder (~> 2.1.2) 
    erubis (~> 2.6.6) 
    i18n (~> 0.5.0) 
    rack (~> 1.2.1) 
    rack-mount (~> 0.6.14) 
    rack-test (~> 0.5.7) 
    tzinfo (~> 0.3.23) 
    activemodel (3.0.7) 
    activesupport (= 3.0.7) 
    builder (~> 2.1.2) 
    i18n (~> 0.5.0) 
    activerecord (3.0.7) 
    activemodel (= 3.0.7) 
    activesupport (= 3.0.7) 
    arel (~> 2.0.2) 
    tzinfo (~> 0.3.23) 
    activeresource (3.0.7) 
    activemodel (= 3.0.7) 
    activesupport (= 3.0.7) 
    activesupport (3.0.7) 
    admin_data (1.1.13) 
    will_paginate (= 3.0.pre2) 
    analytical (2.11.0) 
    annotate (2.4.0) 
    arel (2.0.10) 
    aws-s3 (0.6.2) 
    builder 
    mime-types 
    xml-simple 
    babosa (0.3.5) 
    bcrypt-ruby (2.1.4) 
    braintree (2.10.1) 
    builder (>= 2.0.0) 
    builder (2.1.2) 
    cocaine (0.1.0) 
    configuration (1.3.1) 
    css_parser (1.1.9) 
    devise (1.4.2) 
    bcrypt-ruby (~> 2.1.2) 
    orm_adapter (~> 0.0.3) 
    warden (~> 1.0.3) 
    devise_invitable (0.5.2) 
    devise (~> 1.4.1) 
    rails (>= 3.0.0, < 3.2) 
    enumerate_it (0.7.8) 
    activesupport (>= 2.3.2) 
    erubis (2.6.6) 
    abstract (>= 1.0.0) 
    escape (0.0.4) 
    exception_notification (2.4.1) 
    fastercsv (1.5.4) 
    formtastic (1.1.0) 
    actionpack (>= 2.3.0) 
    activesupport (>= 2.3.0) 
    i18n (>= 0.4.0) 
    friendly_id (3.2.1.1) 
    babosa (~> 0.3.0) 
    heroku (2.3.6) 
    launchy (>= 0.3.2) 
    rest-client (~> 1.6.1) 
    term-ansicolor (~> 1.0.5) 
    heroku_backup_task (0.0.5.1) 
    heroku (>= 1.13.7) 
    rake 
    heroku_san (1.2.2) 
    heroku (>= 2) 
    rails (>= 2) 
    hominid (3.0.2) 
    i18n (0.5.0) 
    jquery-rails (1.0.12) 
    railties (~> 3.0) 
    thor (~> 0.14) 
    json (1.5.3) 
    launchy (0.4.0) 
    configuration (>= 0.0.5) 
    rake (>= 0.8.1) 
    mail (2.2.19) 
    activesupport (>= 2.3.6) 
    i18n (>= 0.4.0) 
    mime-types (~> 1.16) 
    treetop (~> 1.4.8) 
    mime-types (1.16) 
    mixpanel (0.9.0) 
    escape 
    json 
    rack 
    mysql2 (0.2.11) 
    nokogiri (1.5.0) 
    orm_adapter (0.0.5) 
    paperclip (2.3.15) 
    activerecord (>= 2.3.0) 
    activesupport (>= 2.3.2) 
    cocaine (>= 0.0.2) 
    mime-types 
    polyglot (0.3.1) 
    poundpay (0.2.8) 
    activeresource (>= 3.0) 
    rack (1.2.3) 
    rack-mount (0.6.14) 
    rack (>= 1.0.0) 
    rack-test (0.5.7) 
    rack (>= 1.0) 
    rails (3.0.7) 
    actionmailer (= 3.0.7) 
    actionpack (= 3.0.7) 
    activerecord (= 3.0.7) 
    activeresource (= 3.0.7) 
    activesupport (= 3.0.7) 
    bundler (~> 1.0) 
    railties (= 3.0.7) 
    rails-footnotes (3.7.4) 
    rails (>= 3.0.0) 
    rails3-jquery-autocomplete (0.9.0) 
    rails (~> 3.0) 
    railties (3.0.7) 
    actionpack (= 3.0.7) 
    activesupport (= 3.0.7) 
    rake (>= 0.8.7) 
    thor (~> 0.14.4) 
    rake (0.9.2) 
    rest-client (1.6.3) 
    mime-types (>= 1.16) 
    right_aws (2.1.0) 
    right_http_connection (>= 1.2.5) 
    right_http_connection (1.3.0) 
    rmagick (2.13.1) 
    roadie (1.1.0) 
    actionmailer (~> 3.0.0) 
    css_parser 
    nokogiri (>= 1.4.4) 
    sequel (3.25.0) 
    term-ansicolor (1.0.5) 
    thor (0.14.6) 
    tiny_mce (0.1.4) 
    treetop (1.4.9) 
    polyglot (>= 0.3.1) 
    tzinfo (0.3.29) 
    warden (1.0.4) 
    rack (>= 1.0) 
    web-app-theme (0.6.3) 
    will_paginate (3.0.pre2) 
    xml-simple (1.1.0) 

    PLATFORMS 
    ruby 

    DEPENDENCIES 
    admin_data 
    analytical 
    annotate 
    aws-s3 
    braintree 
    devise 
    devise_invitable 
    enumerate_it 
    exception_notification 
    fastercsv 
    formtastic (~> 1.1.0) 
    friendly_id (~> 3.2.1) 
    heroku_backup_task 
    heroku_san 
    hominid 
    jquery-rails 
    mixpanel 
    mysql2 (~> 0.2.7) 
    paperclip 
    poundpay 
    rails (= 3.0.7) 
    rails-footnotes (>= 3.7) 
    rails3-jquery-autocomplete 
    right_aws 
    rmagick 
    roadie 
    sequel 
    tiny_mce 
    web-app-theme (>= 0.6.2) 
    will_paginate (~> 3.0.pre2) 

答えて

2

をロックである:あなたがいずれかを見つけることができない場合は、

config.log_level 

をコンソールからあなたの現在のログレベルを確認してください。

Rails.logger.level 

この値は0または1である必要があります。開発環境。そうでない場合は、設定config.log_levelプロパティへ:デバッグごdevelopment.rbファイルで

config.log_level = :debug 

environment.rbにまたはapplication.rbでこれをしないファイル。

+0

パーフェクト!なぜそれをapplication.rbに入れているのか分かりませんか?それは私がずっと時間を費やしていた問題だよ! –

+0

application.rbファイルで設定すると**すべて**それはおそらく:warnまたは:errorで、これはSQLロギングを排除します。 SQLのロギングが必要です。 –

関連する問題