From b525650ace6ade4b874a6ff9de57387e8f48c832 Mon Sep 17 00:00:00 2001 From: shedfreewu Date: Thu, 24 Jul 2025 10:43:18 +0800 Subject: [PATCH] optimize log --- .../tencent/cloud/common/util/ApplicationContextAwareUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-tencent-commons/src/main/java/com/tencent/cloud/common/util/ApplicationContextAwareUtils.java b/spring-cloud-tencent-commons/src/main/java/com/tencent/cloud/common/util/ApplicationContextAwareUtils.java index ef920d3d3..3fd921776 100644 --- a/spring-cloud-tencent-commons/src/main/java/com/tencent/cloud/common/util/ApplicationContextAwareUtils.java +++ b/spring-cloud-tencent-commons/src/main/java/com/tencent/cloud/common/util/ApplicationContextAwareUtils.java @@ -59,7 +59,7 @@ public class ApplicationContextAwareUtils implements ApplicationContextAware { if (applicationContext != null) { return applicationContext.getEnvironment().getProperty(key); } - LOGGER.warn("applicationContext is null, try to get property from System.getenv or System.getProperty"); + LOGGER.warn("applicationContext is null, try to get property({}} from System.getenv or System.getProperty", key); String property = System.getenv(key); if (StringUtils.isBlank(property)) { property = System.getProperty(key);