summaryrefslogtreecommitdiffstats
path: root/lib/puppet/rails.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-11-10 17:51:47 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-11-10 17:51:47 +0000
commitb44ebe21d550663af82c44b090b29f8cc902ed36 (patch)
treeee51f3180d25875a7c856d6208cec6020a05ff3a /lib/puppet/rails.rb
parent9f8849e81a34a2cf5d81a1c5fdea2aa9d51aa63d (diff)
downloadpuppet-b44ebe21d550663af82c44b090b29f8cc902ed36.tar.gz
puppet-b44ebe21d550663af82c44b090b29f8cc902ed36.tar.xz
puppet-b44ebe21d550663af82c44b090b29f8cc902ed36.zip
Fixing some warnings
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1853 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/rails.rb')
-rw-r--r--lib/puppet/rails.rb3
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.