Skip to content

Commit

Permalink
[pinpoint-apm#10531] Improved exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Dec 22, 2023
1 parent 6806089 commit 8298a9e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ public boolean insert(SpanBo span) {
return true;
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new RuntimeException(e);
logger.debug("insert interrupted", e);
return false;
} catch (ExecutionException | TimeoutException e) {
throw new RuntimeException(e);
logger.debug("insert failed", e);
return false;
}
}

Expand Down

0 comments on commit 8298a9e

Please sign in to comment.