diff options
| author | lutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-22 23:11:59 +0000 |
|---|---|---|
| committer | lutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-22 23:11:59 +0000 |
| commit | db8a23eb56521d106a11ac2b2b619c7849d65a70 (patch) | |
| tree | e7c854f8276f365cb7ae8d9210700741d2993ec3 /lib | |
| parent | fa02d67a9de63e457b122ccedf4fb329ee04949b (diff) | |
| download | puppet-db8a23eb56521d106a11ac2b2b619c7849d65a70.tar.gz puppet-db8a23eb56521d106a11ac2b2b619c7849d65a70.tar.xz puppet-db8a23eb56521d106a11ac2b2b619c7849d65a70.zip | |
Print stacktrace in debug mode when catchign a signal - useful for understanding client hangs
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2221 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb index 1b7f97b74..6498d74a8 100644 --- a/lib/puppet.rb +++ b/lib/puppet.rb @@ -204,6 +204,8 @@ module Puppet [:INT, :TERM].each do |signal| trap(signal) do Puppet.notice "Caught #{signal}; shutting down" + Puppet.debug "Signal caught here:" + caller.each { |l| Puppet.debug l } Puppet.shutdown end end |
