Skip to content

Commit

Permalink
Added logs for refreshing cache to see if there is a concurrent call …
Browse files Browse the repository at this point in the history
…to update cache which leads to sequence errors
  • Loading branch information
Mme-adorsys committed Feb 12, 2024
1 parent 7f63291 commit 33944d8
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package de.adorsys.sts;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.event.ContextClosedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class ApplicationEventListener {

private static final Logger log = LoggerFactory.getLogger(ApplicationEventListener.class);

@EventListener(ApplicationReadyEvent.class)
public void applicationReadyEvent() {
log.info("Application started");
}

@EventListener(ContextClosedEvent.class)
public void contextClosedEvent() {
log.info("Application stopped");
}
}

0 comments on commit 33944d8

Please sign in to comment.