summaryrefslogtreecommitdiff
path: root/chef
diff options
context:
space:
mode:
authorDaniel DeLeo <dan@opscode.com>2011-04-15 15:14:20 -0700
committerDaniel DeLeo <dan@opscode.com>2011-04-15 15:14:20 -0700
commit99b72974de1f1c2e5914a33ddf749ef4af1c8219 (patch)
treebeeacec7ee2943db5ebe23d23f604ef945bc36f4 /chef
parentfbc8154316435edc124025db1eda925a24f10529 (diff)
downloadchef-99b72974de1f1c2e5914a33ddf749ef4af1c8219.tar.gz
write error dumps to file_cache_path
Diffstat (limited to 'chef')
-rw-r--r--chef/lib/chef/application.rb2
-rw-r--r--chef/lib/chef/handler/error_report.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/chef/lib/chef/application.rb b/chef/lib/chef/application.rb
index c7a3ea0217..080d06f1fc 100644
--- a/chef/lib/chef/application.rb
+++ b/chef/lib/chef/application.rb
@@ -127,7 +127,7 @@ class Chef::Application
class << self
def debug_stacktrace(e)
message = "#{e.class}: #{e}\n#{e.backtrace.join("\n")}"
- filename = File.join(Dir.tmpdir, "chef-stacktrace.out")
+ filename = File.join(Chef::Config[:file_cache_path], "chef-stacktrace.out")
Chef::Log.fatal("Stacktrace dumped to #{filename}")
Chef::Log.debug(message)
chef_stacktrace_out = File.open(filename, "w")
diff --git a/chef/lib/chef/handler/error_report.rb b/chef/lib/chef/handler/error_report.rb
index 575a9609b5..eba2d86e65 100644
--- a/chef/lib/chef/handler/error_report.rb
+++ b/chef/lib/chef/handler/error_report.rb
@@ -32,7 +32,7 @@ class Chef
end
def report_path
- File.join(Dir.tmpdir, "failed-run-data.json")
+ File.join(Chef::Config[:file_cache_path], "failed-run-data.json")
end
end