我设置development.rb以下行:的Rails这么想的登录数据库查询
config.log_level = :debug
服务器正常启动,但它仍然,我希望看到的选择创建不记录查询德等在日志中,但没有出现。我前段时间安装了例外,它可能会困扰常规日志?如果是,如何解决问题?
的答案的要求修改1:
ls -la log/ :
totale 26416
drwx------ 2 marco marco 4096 18 giu 13.14 .
drwx------ 15 marco marco 4096 5 lug 10.48 ..
-rw-r--r-- 1 marco marco 27027849 18 lug 12.07 development.log
-rw-r--r-- 1 marco marco 1578 18 giu 13.14 exceptional.log
-rw-r--r-- 1 marco marco 2676 18 giu 13.14 production.log
-rw-r--r-- 1 marco marco 0 18 giu 13.14 test.log
cat ./Gemfile :
source 'http://rubygems.org'
gem 'rails', '3.0.3'
gem 'exceptional' #Logging system in production
group :development, :test do
gem 'railroady'
end
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'paperclip', '~> 2.3'
gem 'aws-s3'
gem 'rails3-jquery-autocomplete'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem 'ruby-debug'
# gem 'ruby-debug19'
# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'
# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
# gem 'webrat'
# end
完成我设置查询在environment.rb中没有任何变化:( –
如何在开发模式下运行rails应用程序?你可以做一些事情:1. ls -la log/2. cat ./Gemfile – Anatoly
我启动了这样的命令,查看我的edit in这个问题。 –