diff options
Diffstat (limited to 'lib/puppet/rails.rb')
-rw-r--r-- | lib/puppet/rails.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/rails.rb b/lib/puppet/rails.rb index 42baee8bb..ce1e3ebe9 100644 --- a/lib/puppet/rails.rb +++ b/lib/puppet/rails.rb @@ -72,6 +72,9 @@ require 'puppet/rails/database/schema_init' unless defined? ActiveRecord::Base raise Puppet::DevError, "No activerecord, cannot init Puppet::Rails" end + + + ActiveRecord::Base.logger = Logger.new(Puppet[:railslog]) # This global init does not work for testing, because we remove # the state dir on every test. |