Skip to content

Commit

Permalink
Change level of initialization exception to error, make errors obvious (
Browse files Browse the repository at this point in the history
  • Loading branch information
bvolpato authored Oct 26, 2023
1 parent ffb4332 commit 8b8af7f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,10 @@ private BeamFnApi.ProcessBundleDescriptor loadDescriptor(String id) {
}
processBundleHandler.shutdown();
} catch (Exception e) {
System.out.println("Shutting down harness due to exception: " + e.toString());
LOG.error("Shutting down harness due to exception", e);
e.printStackTrace();
} finally {
System.out.println("Shutting SDK harness down.");
LOG.info("Shutting SDK harness down.");
executionStateSampler.stop();
executorService.shutdown();
}
Expand Down

0 comments on commit 8b8af7f

Please sign in to comment.