Commit 2a587c84 by zhangzheng

监听配置和修改配置的日志级别改为info,方便应用发现问题

parent 274138ff
...@@ -114,7 +114,7 @@ public class SpringValueProcessor extends ApolloProcessor implements BeanFactory ...@@ -114,7 +114,7 @@ public class SpringValueProcessor extends ApolloProcessor implements BeanFactory
for (String key : keys) { for (String key : keys) {
SpringValue springValue = new SpringValue(key, value.value(), bean, beanName, method, false); SpringValue springValue = new SpringValue(key, value.value(), bean, beanName, method, false);
springValueRegistry.register(key, springValue); springValueRegistry.register(key, springValue);
logger.debug("Monitoring {}", springValue); logger.info("Monitoring {}", springValue);
} }
} }
......
...@@ -25,7 +25,7 @@ import org.springframework.util.CollectionUtils; ...@@ -25,7 +25,7 @@ import org.springframework.util.CollectionUtils;
* Create by zhangzheng on 2018/3/6 * Create by zhangzheng on 2018/3/6
*/ */
public class AutoUpdateConfigChangeListener implements ConfigChangeListener{ 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 boolean typeConverterHasConvertIfNecessaryWithFieldParameter;
private final Environment environment; private final Environment environment;
...@@ -92,7 +92,7 @@ public class AutoUpdateConfigChangeListener implements ConfigChangeListener{ ...@@ -92,7 +92,7 @@ public class AutoUpdateConfigChangeListener implements ConfigChangeListener{
Object value = resolvePropertyValue(springValue); Object value = resolvePropertyValue(springValue);
springValue.update(value); 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); springValue);
} catch (Throwable ex) { } catch (Throwable ex) {
logger.error("Auto update apollo changed value failed, {}", springValue.toString(), 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