From 0ab79e56c0041e4ee0a97c11e77ed28b80b90d6b Mon Sep 17 00:00:00 2001 From: Holger Just Date: Fri, 22 Sep 2017 23:22:31 +0200 Subject: [PATCH] Clarify that re-raised exceptions are also logged in a Flow --- lib/rackstash/flow.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/rackstash/flow.rb b/lib/rackstash/flow.rb index 0cde76a..a5aef7d 100644 --- a/lib/rackstash/flow.rb +++ b/lib/rackstash/flow.rb @@ -106,9 +106,9 @@ module Rackstash # (see #close!) # - # Any error raised by the adapter when closing it is written to the - # {#error_flow} and then swallowed. Only grave exceptions (i.e. all those - # which do not derive from `StandardError`) are re-raised. + # Any error raised by the adapter when closing it is logged to the + # {#error_flow} and then swallowed. Grave exceptions (i.e. all those which + # do not derive from `StandardError`) are logged and then re-raised. def close close! rescue Exception => exception @@ -182,9 +182,9 @@ module Rackstash # (see #reopen!) # - # Any error raised by the adapter when reopening it is written to the - # {#error_flow} and then swallowed. Only grave exceptions (i.e. all those - # which do not derive from `StandardError`) are re-raised. + # Any error raised by the adapter when reopening it is logged to the + # {#error_flow} and then swallowed. Grave exceptions (i.e. all those which + # do not derive from `StandardError`) are logged and then re-raised. def reopen reopen! rescue Exception => exception @@ -220,9 +220,9 @@ module Rackstash # (see #write!) # - # Any error raised by the adapter when writing to it is written to the - # {#error_flow} and then swallowed. Only grave exceptions (i.e. all those - # which do not derive from `StandardError`) are re-raised. + # Any error raised by the adapter when writing to it is logged to the + # {#error_flow} and then swallowed. Grave exceptions (i.e. all those which + # do not derive from `StandardError`) are logged and then re-raised. def write(event) write!(event) rescue Exception => exception