mirror of
https://github.com/meineerde/rackstash.git
synced 2025-12-29 10:39:36 +00:00
Clarify that re-raised exceptions are also logged in a Flow
This commit is contained in:
parent
6a45a8586d
commit
0ab79e56c0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user