fix: Async logging should not rethrow error in onFailure callback (#923) · googleapis/java-logging@1adf867 (original) (raw)

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -882,7 +882,7 @@ public void flush() {
882 882 try {
883 883 ApiFutures.allAsList(writesToFlush).get(FLUSH_WAIT_TIMEOUT_SECONDS, TimeUnit.SECONDS);
884 884 } catch (InterruptedException | ExecutionException TimeoutException e) {
885 -throw new RuntimeException(e);
885 +System.err.println("ERROR: flush failure: " + e);
886 886 }
887 887 }
888 888