[Backgroundrb-devel] one more suggestion for backgroundrb
dorian taylor
dorian.taylor.lists at gmail.com
Wed Jun 21 17:18:13 EDT 2006
this:
Index: script/backgroundrb/lib/backgroundrb.rb
===================================================================
--- script/backgroundrb/lib/backgroundrb.rb (revision 16)
+++ script/backgroundrb/lib/backgroundrb.rb (working copy)
@@ -29,7 +29,11 @@
# the log via @logger
def initialize(args)
@logger = BACKGROUNDRB_LOGGER
- Thread.new { do_work(args) }
+ begin
+ Thread.new { do_work(args) }
+ rescue Exception => e
+ @logger.error e.inspect
+ end
end
end
More information about the Backgroundrb-devel
mailing list