Skip to content

Commit

Permalink
TOMEE-4395 add debug logging for default values
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallimore committed Sep 5, 2024
1 parent 79a1190 commit 1f8eef1
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 1f8eef1

Please sign in to comment.