Skip to content

Commit

Permalink
LOGGER -> logger in CloudInitUserDataProvider.java
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache committed Aug 30, 2024
1 parent 6e988b8 commit a5f5560
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected String extractUserDataHeader(String userdata) {
.filter(x -> (x.startsWith("#") && !x.startsWith("##")) || (x.startsWith("Content-Type:")))
.collect(Collectors.toList());
if (CollectionUtils.isEmpty(lines)) {
LOGGER.debug("Failed to detect the user data format type as it does not contain a header");
logger.debug("Failed to detect the user data format type as it does not contain a header");
return null;
}
return lines.get(0);
Expand All @@ -96,7 +96,7 @@ protected FormatType mapUserDataHeaderToFormatType(String header, FormatType def
if (defaultFormatType == null) {
throw new CloudRuntimeException("Failed to detect the user data format type as it does not contain a header");
}
LOGGER.debug(String.format("Empty header for userdata, using the default format type: %s", defaultFormatType.name()));
logger.debug(String.format("Empty header for userdata, using the default format type: %s", defaultFormatType.name()));
return defaultFormatType;
} else if (header.equalsIgnoreCase("#cloud-config")) {
return FormatType.CLOUD_CONFIG;
Expand Down

0 comments on commit a5f5560

Please sign in to comment.