add logging
This commit is contained in:
parent
d148e516c0
commit
46da8663be
1 changed files with 6 additions and 0 deletions
|
@ -440,6 +440,9 @@ public class SystemHelper {
|
|||
|
||||
public void updateSystemProperties() {
|
||||
final String value = ComponentUtil.getFessConfig().getAppValue();
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("system.properties: {}", value);
|
||||
}
|
||||
if (StringUtil.isNotBlank(value)) {
|
||||
ParameterUtil.parse(value).entrySet().stream().filter(e -> {
|
||||
final String key = e.getKey();
|
||||
|
@ -451,6 +454,9 @@ public class SystemHelper {
|
|||
}
|
||||
return System.getProperty(key) == null;
|
||||
}).forEach(e -> {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("system.properties: setProperty({}, {})", e.getKey(), e.getValue());
|
||||
}
|
||||
System.setProperty(e.getKey(), e.getValue());
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue