Skip to content

Commit a0f8ce9

Browse files
author
klaus.freitas.scclouds
committed
minor tweaks in log refactor
1 parent 5154c69 commit a0f8ce9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

api/src/main/java/com/cloud/agent/api/storage/OVFHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected OVFPropertyTO createOVFPropertyFromNode(Node node, int index, String c
120120
boolean password = StringUtils.isNotBlank(passStr) && passStr.equalsIgnoreCase("true");
121121
String label = ovfParser.getChildNodeValue(node, "Label");
122122
String description = ovfParser.getChildNodeValue(node, "Description");
123-
logger.debug("Creating OVF property index {} with key = {}", ObjectUtils.defaultIfNull(index + " for category" + category, index), key);
123+
logger.debug("Creating OVF property index {} {} with key = {}", index, (category == null ? "" : " for category " + category), key);
124124
return new OVFPropertyTO(key, type, value, qualifiers, userConfigurable,
125125
label, description, password, index, category);
126126
}

api/src/main/java/com/cloud/agent/api/storage/OVFParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public Document parseOVFFile(String ovfFilePath) {
7070
try {
7171
return documentBuilder.parse(new File(ovfFilePath));
7272
} catch (SAXException | IOException e) {
73-
logger.error("Error parsing {} {}", e.getMessage(), e);
73+
logger.error("Error parsing {} {}", ovfFilePath, e.getMessage(), e);
7474
return null;
7575
}
7676
}

0 commit comments

Comments
 (0)