Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Sep 10, 2024
1 parent 771c79a commit 0fe01bf
Showing 1 changed file with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,22 @@
import org.entur.lamassu.model.provider.FeedProvider;
import org.slf4j.MDC;

public class LoggingSubscriptionUpdateInterceptor implements SubscriptionUpdateInterceptor {
private final FeedProvider feedProvider;
public class LoggingSubscriptionUpdateInterceptor
implements SubscriptionUpdateInterceptor {

public LoggingSubscriptionUpdateInterceptor(
FeedProvider feedProvider
) {
this.feedProvider = feedProvider;
}
@Override
public void beforeUpdate() {
MDC.put("systemId", feedProvider.getSystemId());
}
private final FeedProvider feedProvider;

@Override
public void afterUpdate() {
MDC.remove("systemId");
}
public LoggingSubscriptionUpdateInterceptor(FeedProvider feedProvider) {
this.feedProvider = feedProvider;
}

@Override
public void beforeUpdate() {
MDC.put("systemId", feedProvider.getSystemId());
}

@Override
public void afterUpdate() {
MDC.remove("systemId");
}
}

0 comments on commit 0fe01bf

Please sign in to comment.