lib/rbbt/util/misc/development.rb in rbbt-util-5.23.5 vs lib/rbbt/util/misc/development.rb in rbbt-util-5.23.6
- old
+ new
@@ -153,10 +153,12 @@
sleep sleep
retry
rescue StopInsist
raise $!.exception
rescue Aborted, Interrupt
+ Log.exception $!
+ Log.stack caller
if msg
Log.warn("Not Insisting after Aborted: #{$!.message} -- #{msg}")
else
Log.warn("Not Insisting after Aborted: #{$!.message}")
end
@@ -167,9 +169,13 @@
elsif FalseClass === msg
nil
else
Log.warn("Insisting after exception: #{$!.class} #{$!.message}")
end
+
+ Log.stack caller
+ Log.exception $!
+
if sleep and try > 0
sleep sleep
sleep = sleep_array.shift || sleep if sleep_array
else