commit d7a5b38889eb2f668438d0389ad9597b1edb7b25
parent d41d3ab44903e4e894ecb9bed2740846e05fa53b
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Thu, 8 Nov 2007 01:08:07 +0000
move sup-exception-log code so that it captures everything
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@680 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/sup b/bin/sup
@@ -311,6 +311,10 @@ ensure
end
if $exception
+ File.open("sup-exception-log.txt", "w") do |f|
+ f.puts "--- #{e.class.name} at #{Time.now}"
+ f.puts e.message, e.backtrace
+ end
$stderr.puts <<EOS
----------------------------------------------------------------
I'm very sorry, but it seems that an error occurred in Sup.
diff --git a/lib/sup.rb b/lib/sup.rb
@@ -69,10 +69,6 @@ module Redwood
begin
yield
rescue Exception => e
- File.open("sup-exception-log.txt", "w") do |f|
- f.puts "--- #{e.class.name} at #{Time.now}"
- f.puts e.message, e.backtrace
- end
$exception ||= e
raise
end