diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-09-15 17:32:26 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-09-15 17:32:26 +0000 |
| commit | 48992d712bc6d226d117bebd887c0fd42816fc3a (patch) | |
| tree | a799c010936ae97bdce222d72dfe31790aef4357 /lib/puppet/server | |
| parent | cda7253b2da3b6980f5cf2846f631597ef249000 (diff) | |
| download | puppet-48992d712bc6d226d117bebd887c0fd42816fc3a.tar.gz puppet-48992d712bc6d226d117bebd887c0fd42816fc3a.tar.xz puppet-48992d712bc6d226d117bebd887c0fd42816fc3a.zip | |
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
Diffstat (limited to 'lib/puppet/server')
| -rwxr-xr-x | lib/puppet/server/report.rb | 2 | ||||
| -rw-r--r-- | lib/puppet/server/servlet.rb | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/lib/puppet/server/report.rb b/lib/puppet/server/report.rb index d6ed706f9..1c217561f 100755 --- a/lib/puppet/server/report.rb +++ b/lib/puppet/server/report.rb @@ -114,7 +114,7 @@ class Server f.puts report end rescue => detail - if Puppet[:debug] + if Puppet[:trace] puts detail.backtrace end Puppet.warning "Could not write report for %s at %s: %s" % diff --git a/lib/puppet/server/servlet.rb b/lib/puppet/server/servlet.rb index 8fc872293..136bbb933 100644 --- a/lib/puppet/server/servlet.rb +++ b/lib/puppet/server/servlet.rb @@ -43,7 +43,6 @@ class Server end ip = request.peeraddr[3] if request.client_cert - begin if @puppetserver.authconfig.exists? allowed = @puppetserver.authconfig.allowed?(method, client, ip) @@ -71,11 +70,6 @@ class Server return false end end - rescue => detail - puts detail - puts detail.backtrace - raise - end else if method =~ /^puppetca\./ Puppet.notice "Allowing %s(%s) untrusted access to CA methods" % |
