You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2017/08/16 15:41:35 UTC
[12/25] ignite git commit: IGNITE-4991 Do not print out system
properties when IGNITE_TO_STRING_INCLUDE_SENSITIVE is set to false. This
closes #2428.
IGNITE-4991 Do not print out system properties when IGNITE_TO_STRING_INCLUDE_SENSITIVE is set to false. This closes #2428.
Signed-off-by: nikolay_tikhonov <nt...@gridgain.com>
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/18e79e5c
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/18e79e5c
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/18e79e5c
Branch: refs/heads/ignite-5901
Commit: 18e79e5cbd0c861e9d8832a654b2dec9338a86d6
Parents: 44d60f5
Author: Evgenii Zhuravlev <E....@gmail.com>
Authored: Mon Aug 14 14:13:46 2017 +0300
Committer: nikolay_tikhonov <nt...@gridgain.com>
Committed: Mon Aug 14 14:13:46 2017 +0300
----------------------------------------------------------------------
.../src/main/java/org/apache/ignite/internal/IgniteKernal.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/18e79e5c/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
index f5111c3..bae8b74 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
@@ -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());
}