Updated git submodules
Project: infrautils stable/carbon
39550b6b5f3bec7e46db3382d2ec6e1021b5496c
ListenableFutures util to simplify adding error logging callbacks
Intended for usage in existing code prevalent in e.g. genius and netvirt
which simply ignores Future returned by DataBroker Tx submit; using
this, at least we'll get to see logs. (Ideal solution would be real
error recovery callbacks.)
NB: This is solution for today's world. In tomorrow's world where e.g.
DataBroker (and other ODL APIs) switch from Guava's ListenableFuture to
Java 8's CompletionStage, this helper won't be required anymore, as code
then will be able to just use the easier:
completionStage.exceptionally(t -> LOG.error("...", t));
instead of using this utility for today's APIs like this:
import static
org.opendaylight.infrautils.utils.concurrent.MoreFutures.addErrorLogging;
addErrorLogging(listenableFuture, LOG, "...");
Until that (major...) API switch happens though, this is a very
convenient utility to short-cut what otherwise is several lines of
boiler plate code.
TODO: It would be cool if this could, later, preserve the call stack...
Change-Id: I1d3e4afbc0940faa0c8f83e9d713c2e081e18a28
Signed-off-by: Michael Vorburger <vorburger@redhat.com>