Skip to content

Commit

Permalink
Catch exception when EventSender stopped (#1248)
Browse files Browse the repository at this point in the history
* Catch exception when EventSender stopped

* Add author
  • Loading branch information
Z-Beatles authored and garyrussell committed Sep 16, 2020
1 parent 2a8bb4a commit 61c0446
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
* @author Dominique Villard
* @author Nicolas Ristock
* @author Eugene Gusev
* @author Wayne Chu
*
* @since 1.4
*/
Expand Down Expand Up @@ -925,6 +926,9 @@ public void run() {
catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
catch (Exception e) {
addError("Could not send log message, appender is stopped", e);
}
}

private void sendOneEncoderPatternMessage(RabbitTemplate rabbitTemplate, String routingKey) {
Expand Down

0 comments on commit 61c0446

Please sign in to comment.