Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed BindingFlattenedEnvironmentPostProcessor not logging anything. #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public final class BindingFlattenedEnvironmentPostProcessor implements Applicati

public static final String BINDING_FLATTENED_PROPERTY_SOURCE_NAME = "kubernetesServiceBindingFlattened";

private final DeferredLog log = new DeferredLog();
private static final DeferredLog LOG = new DeferredLog();

private final Bindings bindings;

Expand All @@ -64,7 +64,7 @@ public int getOrder() {

@Override
public void onApplicationEvent(ApplicationPreparedEvent event) {
this.log.replayTo(getClass());
LOG.replayTo(getClass());
}

@Override
Expand All @@ -77,11 +77,11 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
});

if (properties.isEmpty()) {
log.debug("No properties set from Kubernetes Service Bindings. Skipping PropertySource creation.");
LOG.debug("No properties set from Kubernetes Service Bindings. Skipping PropertySource creation.");
return;
}

log.info("Creating flattened PropertySource from Kubernetes Service Bindings");
LOG.info("Creating flattened PropertySource from Kubernetes Service Bindings");
contributePropertySource(BINDING_FLATTENED_PROPERTY_SOURCE_NAME, properties, environment);
}

Expand Down