RethrowPolicy
is not logging exceptions, unlike ErrorPolicy
#4000
Labels
RethrowPolicy
is not logging exceptions, unlike ErrorPolicy
#4000
The following error is not logged to the log file, but only shows in
stdout
(probably because of GHC top level error handler):The node is configured with
EnabledP2P: true
.RethrowPolicy
are different in that matter toErrorPolicies
. The former don't log exceptions, while the latter do.We can either:
RethrowPolicy
should not log exceptions as this will duplicate error messages in many cases. For example exceptions thrown by any mini-protocol are logged byConnectionHandlerTracer
(which is part ofConnectionManagerTracer
). Thanks to thatrunRethrowPolicy
is a pure function.runRethrowPolicy
an effectuful function, which log exceptions.The advantage of the latter approach is that:
RethrowPolicy
(this is also easy to fix on the consensus side)The text was updated successfully, but these errors were encountered: