This is an automated email from the ASF dual-hosted git repository.

weizhou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit a5f55602fc3c21a56715c2b944f31c2b67f134ed
Author: Wei Zhou <weiz...@apache.org>
AuthorDate: Fri Aug 30 08:51:12 2024 +0200

    LOGGER -> logger in CloudInitUserDataProvider.java
---
 .../org/apache/cloudstack/userdata/CloudInitUserDataProvider.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/engine/userdata/cloud-init/src/main/java/org/apache/cloudstack/userdata/CloudInitUserDataProvider.java
 
b/engine/userdata/cloud-init/src/main/java/org/apache/cloudstack/userdata/CloudInitUserDataProvider.java
index 6f633f6abb2..02e6adcc784 100644
--- 
a/engine/userdata/cloud-init/src/main/java/org/apache/cloudstack/userdata/CloudInitUserDataProvider.java
+++ 
b/engine/userdata/cloud-init/src/main/java/org/apache/cloudstack/userdata/CloudInitUserDataProvider.java
@@ -85,7 +85,7 @@ public class CloudInitUserDataProvider extends AdapterBase 
implements UserDataPr
                 .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);
@@ -96,7 +96,7 @@ public class CloudInitUserDataProvider extends AdapterBase 
implements UserDataPr
             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;

Reply via email to