Skip to content

Commit

Permalink
Clear the VertxMDC ThreadLocal when shutting down Vert.x
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Jul 6, 2024
1 parent d7c8f08 commit c59049c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ public void handle(AsyncResult<Void> ar) {
Thread.currentThread().interrupt();
throw new IllegalStateException("Exception when closing Vert.x instance", e);
}
VertxMDC.INSTANCE.clear();
LateBoundMDCProvider.setMDCProviderDelegate(null);
vertx = null;
}
Expand Down

0 comments on commit c59049c

Please sign in to comment.