isaolmez/javabyexamples

About afterCompletion

Opened this issue · 0 comments

Hi,
What happen if we remove afterCompletion because when I removed it and use this:

log.info("This is info log");
log.info("This is log number 2");
log.info("This is log number 3");

Thread.sleep(2000);

log.info("This is log number 4");

Thread.sleep(1000);

log.info("This is log number 5");

It makes no problem why we must use the MDC.remove after completion?

Thanks.