Do not print out system properties when IGNITE_TO_STRING_INCLUDE_SENSITIVE is set to false. This closes
@@ -2353,7 +2353,7 @@ public class IgniteKernal implements IgniteEx, IgniteMXBean, Externalizable {
private void ackSystemProperties() {
assert log != null;
- if (log.isDebugEnabled())
+ if (log.isDebugEnabled() && S.INCLUDE_SENSITIVE)
for (Map.Entry<Object, Object> entry : snapshot().entrySet())
log.debug("System property [" + entry.getKey() + '=' + entry.getValue() + ']');
}
@@ -2558,7 +2558,7 @@ public class IgniteKernal implements IgniteEx, IgniteMXBean, Externalizable {
assert log != null;
// Ack IGNITE_HOME and VM arguments.
- if (log.isInfoEnabled()) {
+ if (log.isInfoEnabled() && S.INCLUDE_SENSITIVE) {
log.info("IGNITE_HOME=" + cfg.getIgniteHome());
log.info("VM arguments: " + rtBean.getInputArguments());
}
