From 48992d712bc6d226d117bebd887c0fd42816fc3a Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 15 Sep 2006 17:32:26 +0000 Subject: Using the "trace" configuration parameter to determine whether a stack trace should be printed, rather than just using "debug". I added the param a little while ago and was using it internally in Puppet::DevError, but I just now went through the whole configuration and switched to using it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1613 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/autoload.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/puppet/autoload.rb') diff --git a/lib/puppet/autoload.rb b/lib/puppet/autoload.rb index 0a2b7b6b5..7e880b922 100644 --- a/lib/puppet/autoload.rb +++ b/lib/puppet/autoload.rb @@ -80,9 +80,9 @@ class Puppet::Autoload Kernel.load file, @wrap @loaded[name] = true rescue => detail - #if Puppet[:debug] - # puts detail.backtrace - #end + if Puppet[:trace] + puts detail.backtrace + end warn "Could not autoload %s: %s" % [file.inspect, detail] end end -- cgit