lib/metriksd/librato_metrics_reporter.rb in metriksd-0.5.4 vs lib/metriksd/librato_metrics_reporter.rb in metriksd-0.5.5
- old
+ new
@@ -55,15 +55,15 @@
begin
@queue.submit
rescue => e
if attempts > 0
- puts "Exception from librato metrics. retrying: #{e.class}: #{e.backtrace.join("\n\t")}"
+ puts "Exception from librato metrics. retrying: #{e.class}: #{e.message.to_s[0..500]}\n#{e.backtrace.join("\n\t")}"
sleep attempts + 1
attempts -= 1
retry
else
- puts "Exception from librato metrics. dropping: #{e.class}: #{e.backtrace.join("\n\t")}"
+ puts "Exception from librato metrics. dropping: #{e.class}: #{e.message.to_s[0..500]}\n#{e.backtrace.join("\n\t")}"
end
end
end
end