summaryrefslogtreecommitdiffstats
path: root/lib/puppet/ssl/host.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/ssl/host.rb')
-rw-r--r--lib/puppet/ssl/host.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/ssl/host.rb b/lib/puppet/ssl/host.rb
index 8b455671d..f367adaca 100644
--- a/lib/puppet/ssl/host.rb
+++ b/lib/puppet/ssl/host.rb
@@ -230,6 +230,7 @@ class Puppet::SSL::Host
rescue SystemExit,NoMemoryError
raise
rescue Exception => detail
+ puts detail.backtrace if Puppet[:trace]
Puppet.err "Could not request certificate: %s" % detail.to_s
if time < 1
puts "Exiting; failed to retrieve certificate and waitforcert is disabled"
@@ -251,6 +252,7 @@ class Puppet::SSL::Host
break if certificate
Puppet.notice "Did not receive certificate"
rescue StandardError => detail
+ puts detail.backtrace if Puppet[:trace]
Puppet.err "Could not request certificate: %s" % detail.to_s
end
end