日志(开发和产品)以及服务器输出均无法正常运行3 [英] Logs (both development and product) and server output not working rails 3

查看:48
本文介绍了日志(开发和产品)以及服务器输出均无法正常运行3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自创建应用程序以来,我的应用程序中的development.log从未起作用.我从github提取了其他项目,运行它们,日志运行正常.SQL查询也不会记录到服务器控制台.我通常只会看到类似的东西

the development.log in my application has never worked since the beginning of creating the application. I pull other projects from github, run them and the logs work perfectly fine. the SQL queries don't get logged to the server console either. I usually just see something like

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)

即使涉及到SQL查询

如果您有任何想法,或希望我发布任何代码,请告诉我.我一直在网上寻找很长一段时间的解决方案.我已删除并重新创建了log/development.log文件,整个日志文件夹,并将文件/文件夹及所有内容的权限重置为777.帮助!

If you have any idea, or want me to post any code please let me know. I've looked for a LONG time everywhere online for a solution. I've deleted and recreated the log/development.log file, the whole log folder, reset permissions to be 777 on the file/ folder and everything. Help!

下面是我的gemfile锁

Below is my gemfile lock

    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)

推荐答案

在您的应用程序中搜索对此配置的任何分配:

Search your application for any assignments to this config:

config.log_level

如果找不到任何内容,请从控制台检查当前日志级别:

If you can't find any, check your current log level from console:

Rails.logger.level

开发环境中,该值应为0或1.如果不是,请将 config.log_level 属性设置为 :debug

This value should be 0 or 1, on development environment. If it is not, set the config.log_level property to :debug

config.log_level = :debug

在您的 development.rb 文件中(不要在 environment.rb application.rb 文件中执行此操作.

At your development.rb file (don't do this at the environment.rb or application.rb file.

这篇关于日志(开发和产品)以及服务器输出均无法正常运行3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆