gpt4 book ai didi

ruby-on-rails - 日志(开发和产品)和服务器输出不工作 rails 3

转载 作者:太空宇宙 更新时间:2023-11-03 16:09:27 26 4
gpt4 key购买 nike

我的应用程序中的 development.log 从创建应用程序开始就没有工作过。我从 github 中拉出其他项目,运行它们,日志工作得很好。 SQL 查询也不会记录到服务器控制台。我通常只看到类似的东西

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。帮助!

下面是我的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)

最佳答案

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

config.log_level

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

Rails.logger.level

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

config.log_level = :debug

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

关于ruby-on-rails - 日志(开发和产品)和服务器输出不工作 rails 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6879629/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com