Skip to content

Commit 43b4525

Browse files
authored
[VMware] Remove unnecessary logs on VM deployments (#6996)
1 parent 96aaeac commit 43b4525

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils/src/main/java/com/cloud/utils/nicira/nvp/plugin/NiciraNvpApiVersion.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ public static synchronized boolean isApiVersionLowerThan(String apiVersion){
4040
return (compare < 0);
4141
}
4242

43-
public static synchronized void logNiciraApiVersion(){
44-
s_logger.info("NSX API VERSION: " + ((niciraApiVersion != null) ? niciraApiVersion : " NOT PRESENT"));
43+
public static synchronized void logNiciraApiVersion() {
44+
if (niciraApiVersion != null) {
45+
s_logger.info(String.format("NSX API VERSION: %s", niciraApiVersion));
46+
}
4547
}
4648

4749
}

0 commit comments

Comments
 (0)