Skip to content

Commit

Permalink
Merge pull request #1473 from jgallimore/TOMEE-4395-logging-9x
Browse files Browse the repository at this point in the history
TOMEE-4395 add debug logging for default values
  • Loading branch information
jgallimore authored Sep 6, 2024
2 parents 79a1190 + 1f8eef1 commit da43457
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,21 @@ public <T extends ServiceInfo> T configureService(org.apache.openejb.config.Serv
}
props.putAll(overrides);

if (logger.isDebugEnabled()) {
for (final Map.Entry<Object, Object> entry : props.entrySet()) {
final Object key = entry.getKey();
Object value = entry.getValue();

if (! overrides.containsKey(key) && ! serviceProperties.containsKey(key)) {
if (key instanceof String && "password".equalsIgnoreCase((String) key)) {
value = "<hidden>";
}

logger.debug("[ default used " + key + "=" + value + "]");
}
}
}

{// force user properties last
String propertiesProvider = service.getPropertiesProvider();
if (propertiesProvider == null) {
Expand Down

0 comments on commit da43457

Please sign in to comment.