From 4b1f7c2c11d33e8adad696671ef82d13cb3d5168 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Thu, 25 Jun 2020 13:23:37 +0100 Subject: Print raider exceptions to stderr --- lib/longboat/raiders.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/longboat') diff --git a/lib/longboat/raiders.rb b/lib/longboat/raiders.rb index 2740570..b77066e 100644 --- a/lib/longboat/raiders.rb +++ b/lib/longboat/raiders.rb @@ -21,7 +21,6 @@ module Longboat end def raid! - puts "RAID" @raiders.each do |name, raider| @collector.begin! @@ -42,6 +41,10 @@ module Longboat @collector.commit! rescue Exception => e @collector.abort! + + $stderr.puts "[ERROR] Caught exception from raider: #{name}" + $stderr.puts "[ERROR] Aborted collector transaction" + $stderr.puts "[ERROR] Exception reads: \"#{e.message}\"" end end end -- cgit v1.2.1