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
59553cc6
Commit
59553cc6
authored
Aug 23, 2016
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust cat log
parent
14856db7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
RemoteConfigRepository.java
...ip/framework/apollo/internals/RemoteConfigRepository.java
+6
-3
No files found.
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/RemoteConfigRepository.java
View file @
59553cc6
...
...
@@ -131,6 +131,11 @@ public class RemoteConfigRepository extends AbstractConfigRepository {
this
.
fireRepositoryChange
(
m_namespace
,
this
.
getConfig
());
}
if
(
current
!=
null
)
{
Cat
.
logEvent
(
String
.
format
(
"Apollo.Client.Configs.%s"
,
current
.
getNamespaceName
()),
current
.
getReleaseKey
());
}
transaction
.
setStatus
(
Message
.
SUCCESS
);
}
catch
(
Throwable
ex
)
{
transaction
.
setStatus
(
ex
);
...
...
@@ -157,7 +162,7 @@ public class RemoteConfigRepository extends AbstractConfigRepository {
String
appId
=
m_configUtil
.
getAppId
();
String
cluster
=
m_configUtil
.
getCluster
();
String
dataCenter
=
m_configUtil
.
getDataCenter
();
Cat
.
logEvent
(
"Apollo.Client.Config
Info
"
,
STRING_JOINER
.
join
(
appId
,
cluster
,
m_namespace
));
Cat
.
logEvent
(
"Apollo.Client.Config
Meta
"
,
STRING_JOINER
.
join
(
appId
,
cluster
,
m_namespace
));
int
maxRetries
=
2
;
Throwable
exception
=
null
;
...
...
@@ -194,8 +199,6 @@ public class RemoteConfigRepository extends AbstractConfigRepository {
ApolloConfig
result
=
response
.
getBody
();
Cat
.
logEvent
(
"Apollo.Client.ConfigLoaded."
+
result
.
getNamespaceName
(),
result
.
getReleaseKey
());
logger
.
debug
(
"Loaded config for {}: {}"
,
m_namespace
,
result
);
return
result
;
...
...
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