Skip to content

Commit 0f224c8

Browse files
Likitha Shettysanjaytripathi
authored andcommitted
CLOUDSTACK-8108. vCenter admin name is logged in clear text.
Revert back to TRACE logging while retrieving and recycling VMware context from the context pool.
1 parent a75a431 commit 0f224c8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContextPool.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public VmwareContext getContext(String vCenterAddress, String vCenterUserName) {
8383
VmwareContext context = l.remove(0);
8484
context.setPoolInfo(this, poolKey);
8585

86-
if (s_logger.isInfoEnabled())
87-
s_logger.info("Return a VmwareContext from the idle pool: " + poolKey + ". current pool size: " + l.size() + ", outstanding count: " +
86+
if (s_logger.isTraceEnabled())
87+
s_logger.trace("Return a VmwareContext from the idle pool: " + poolKey + ". current pool size: " + l.size() + ", outstanding count: " +
8888
VmwareContext.getOutstandingContextCount());
8989
return context;
9090
}
@@ -108,12 +108,12 @@ public void returnContext(VmwareContext context) {
108108
context.clearStockObjects();
109109
l.add(context);
110110

111-
if (s_logger.isInfoEnabled())
112-
s_logger.info("Recycle VmwareContext into idle pool: " + context.getPoolKey() + ", current idle pool size: " + l.size() + ", outstanding count: " +
111+
if (s_logger.isTraceEnabled())
112+
s_logger.trace("Recycle VmwareContext into idle pool: " + context.getPoolKey() + ", current idle pool size: " + l.size() + ", outstanding count: " +
113113
VmwareContext.getOutstandingContextCount());
114114
} else {
115-
if (s_logger.isInfoEnabled())
116-
s_logger.info("VmwareContextPool queue exceeds limits, queue size: " + l.size());
115+
if (s_logger.isTraceEnabled())
116+
s_logger.trace("VmwareContextPool queue exceeds limits, queue size: " + l.size());
117117
context.close();
118118
}
119119
}

0 commit comments

Comments
 (0)