]> git.cworth.org Git - sup/commitdiff
dump exception to exception-log.txt (useful because it has the COMPLETE
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 8 Jan 2007 20:26:35 +0000 (20:26 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 8 Jan 2007 20:26:35 +0000 (20:26 +0000)
backtrace)

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@230 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup.rb

index 2d07052e8fa2a360573188375514e14cbb2ae392..f925154fe50dc89add44ac74d53404c79b94d9d8 100644 (file)
@@ -34,6 +34,10 @@ module Redwood
       begin
         yield
       rescue Exception => e
+        File.open("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