Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Added logging to AWSParameterStorePropertySource #529

Closed
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 @@ -61,6 +61,7 @@ public String[] getPropertyNames() {

@Override
public Object getProperty(String name) {
logger.trace("getting property: " + name);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logger.trace("getting property: " + name);
logger.trace("Getting property: {}", name);

return properties.get(name);
}

Expand All @@ -69,6 +70,7 @@ private void getParameters(GetParametersByPathRequest paramsRequest) {
.getParametersByPath(paramsRequest);
for (Parameter parameter : paramsResult.getParameters()) {
String key = parameter.getName().replace(context, "").replace('/', '.');
logger.debug("setting property: " + key);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logger.debug("setting property: " + key);
logger.debug("Setting property: {}", key);

properties.put(key, parameter.getValue());
}
if (paramsResult.getNextToken() != null) {
Expand Down