Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
f8965ca1
Unverified
Commit
f8965ca1
authored
Apr 12, 2018
by
Jason Song
Committed by
GitHub
Apr 12, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1058 from zhangzheng88/origin.master
监听配置和修改配置的日志级别改为info,方便应用发现问题
parents
274138ff
2a587c84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
SpringValueProcessor.java
...mework/apollo/spring/annotation/SpringValueProcessor.java
+1
-1
AutoUpdateConfigChangeListener.java
...pollo/spring/property/AutoUpdateConfigChangeListener.java
+2
-2
No files found.
apollo-client/src/main/java/com/ctrip/framework/apollo/spring/annotation/SpringValueProcessor.java
View file @
f8965ca1
...
...
@@ -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
);
}
}
...
...
apollo-client/src/main/java/com/ctrip/framework/apollo/spring/property/AutoUpdateConfigChangeListener.java
View file @
f8965ca1
...
...
@@ -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
(
SpringValueProcesso
r
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AutoUpdateConfigChangeListene
r
.
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment