Skip to content

Commit a5f5560

Browse files
committed
LOGGER -> logger in CloudInitUserDataProvider.java
1 parent 6e988b8 commit a5f5560

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/userdata/cloud-init/src/main/java/org/apache/cloudstack/userdata/CloudInitUserDataProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected String extractUserDataHeader(String userdata) {
8585
.filter(x -> (x.startsWith("#") && !x.startsWith("##")) || (x.startsWith("Content-Type:")))
8686
.collect(Collectors.toList());
8787
if (CollectionUtils.isEmpty(lines)) {
88-
LOGGER.debug("Failed to detect the user data format type as it does not contain a header");
88+
logger.debug("Failed to detect the user data format type as it does not contain a header");
8989
return null;
9090
}
9191
return lines.get(0);
@@ -96,7 +96,7 @@ protected FormatType mapUserDataHeaderToFormatType(String header, FormatType def
9696
if (defaultFormatType == null) {
9797
throw new CloudRuntimeException("Failed to detect the user data format type as it does not contain a header");
9898
}
99-
LOGGER.debug(String.format("Empty header for userdata, using the default format type: %s", defaultFormatType.name()));
99+
logger.debug(String.format("Empty header for userdata, using the default format type: %s", defaultFormatType.name()));
100100
return defaultFormatType;
101101
} else if (header.equalsIgnoreCase("#cloud-config")) {
102102
return FormatType.CLOUD_CONFIG;

0 commit comments

Comments
 (0)