Skip to content

Commit

Permalink
added back logs from googleapis#2724
Browse files Browse the repository at this point in the history
  • Loading branch information
psinghbay1 committed Dec 5, 2023
1 parent 3555719 commit 7eb90bc
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,23 @@ public void run() {
MoreExecutors.directExecutor());
} catch (InterruptedException e) {
res.setException(SpannerExceptionFactory.propagateInterrupt(e));
txnLogger.log(
Level.WARNING,
String.format("InterruptedException occurred for Session => %s", session.getName()),
e);
} catch (TimeoutException e) {
res.setException(SpannerExceptionFactory.propagateTimeout(e));
txnLogger.log(
Level.WARNING,
String.format("TimeoutException occurred for Session => %s", session.getName()),
e);
} catch (ExecutionException e) {
res.setException(
SpannerExceptionFactory.newSpannerException(e.getCause() == null ? e : e.getCause()));
txnLogger.log(
Level.WARNING,
String.format("ExecutionException occurred for Session => %s", session.getName()),
e);
}
}
}
Expand Down

0 comments on commit 7eb90bc

Please sign in to comment.