Unverified Commit f8965ca1 by Jason Song Committed by GitHub

Merge pull request #1058 from zhangzheng88/origin.master

监听配置和修改配置的日志级别改为info,方便应用发现问题
parents 274138ff 2a587c84
......@@ -114,7 +114,7 @@ public class SpringValueProcessor extends ApolloProcessor implements BeanFactory
for (String key : keys) {
SpringValue springValue = new SpringValue(key, value.value(), bean, beanName, method, false);
springValueRegistry.register(key, springValue);
logger.debug("Monitoring {}", springValue);
logger.info("Monitoring {}", springValue);
}
}
......
......@@ -25,7 +25,7 @@ import org.springframework.util.CollectionUtils;
* Create by zhangzheng on 2018/3/6
*/
public class AutoUpdateConfigChangeListener implements ConfigChangeListener{
private static final Logger logger = LoggerFactory.getLogger(SpringValueProcessor.class);
private static final Logger logger = LoggerFactory.getLogger(AutoUpdateConfigChangeListener.class);
private final boolean typeConverterHasConvertIfNecessaryWithFieldParameter;
private final Environment environment;
......@@ -92,7 +92,7 @@ public class AutoUpdateConfigChangeListener implements ConfigChangeListener{
Object value = resolvePropertyValue(springValue);
springValue.update(value);
logger.debug("Auto update apollo changed value successfully, new value: {}, {}", value,
logger.info("Auto update apollo changed value successfully, new value: {}, {}", value,
springValue);
} catch (Throwable ex) {
logger.error("Auto update apollo changed value failed, {}", springValue.toString(), ex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment