diff options
author | Adam Jacob <adam@opscode.com> | 2011-04-01 12:09:04 -0700 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2011-04-01 17:32:19 -0700 |
commit | 22690688d761ebe37afed025eaa77b48d4c820a6 (patch) | |
tree | c973fcf72287e8ed62bb4a6effbc9efb2c7d5062 /chef/lib/chef/application/solo.rb | |
parent | 974e0ce27527a92ebfa988057855899e7b115330 (diff) | |
download | chef-22690688d761ebe37afed025eaa77b48d4c820a6.tar.gz |
Adding a stack trace file
Diffstat (limited to 'chef/lib/chef/application/solo.rb')
-rw-r--r-- | chef/lib/chef/application/solo.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chef/lib/chef/application/solo.rb b/chef/lib/chef/application/solo.rb index 5dfba6f7b6..b6d4990d84 100644 --- a/chef/lib/chef/application/solo.rb +++ b/chef/lib/chef/application/solo.rb @@ -198,8 +198,7 @@ class Chef::Application::Solo < Chef::Application Chef::Application.exit! "Exiting", 0 end rescue SystemExit => e - Chef::Log.debug("#{e.class}: #{e}\n#{e.backtrace.join("\n")}") - Chef::Application.fatal!("Aborting chef (#{e.class}: #{e.message})", 5) + raise rescue Exception => e if Chef::Config[:interval] Chef::Log.error("#{e.class}: #{e}") @@ -208,9 +207,8 @@ class Chef::Application::Solo < Chef::Application sleep Chef::Config[:interval] retry else - Chef::Log.debug("#{e.class}: #{e}\n#{e.backtrace.join("\n")}") - Chef::Application.fatal!("#{e.class}: #{e.message}", 4) - raise + Chef::Application.debug_stacktrace(e) + Chef::Application.fatal!("#{e.class}: #{e.message}", 1) end ensure GC.start |