Skip to content

Commit

Permalink
Merge pull request #2391 from MajorHe1/MajorHe1-patch-5
Browse files Browse the repository at this point in the history
[ISSUE #2390] use logger to print exception in SubSerivce.java
  • Loading branch information
xwm1992 authored Dec 2, 2022
2 parents ea2fa9c + b2e05de commit 76433e7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void afterPropertiesSet() throws Exception {
try {
countDownLatch.await();
} catch (InterruptedException e) {
e.printStackTrace();
logger.warn("exception occurred when countDownLatch.await ", e);
}
logger.info("stopThread start....");
throw new RuntimeException();
Expand All @@ -110,12 +110,12 @@ public void cleanup() {
}
eventMeshHttpConsumer.unsubscribe(unSubList, url);
} catch (Exception e) {
e.printStackTrace();
logger.warn("exception occurred when unsubscribe ", e);
}
try (final EventMeshHttpConsumer ignore = eventMeshHttpConsumer) {
// close consumer
} catch (Exception e) {
e.printStackTrace();
logger.warn("exception occurred when close consumer ", e);
}
logger.info("end destory.");
}
Expand Down

0 comments on commit 76433e7

Please sign in to comment.