Skip to content

Commit 6676a4b

Browse files
committed
Readd debug guard
1 parent 901cf2d commit 6676a4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/main/java/com/cloud/agent/manager/allocator/impl/FirstFitAllocator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ public List<Host> allocateTo(VirtualMachineProfile vmProfile, DeploymentPlan pla
133133

134134
String paramAsStringToLog = String.format("zone [%s], pod [%s], cluster [%s]", dcId, podId, clusterId);
135135

136-
s_logger.debug(String.format("Looking for hosts in %s.", paramAsStringToLog));
136+
if (s_logger.isDebugEnabled()) {
137+
s_logger.debug(String.format("Looking for hosts in %s.", paramAsStringToLog));
138+
}
137139

138140
String hostTagOnOffering = offering.getHostTag();
139141
String hostTagOnTemplate = template.getTemplateTag();

0 commit comments

Comments
 (0)