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
23125558
Commit
23125558
authored
Aug 23, 2016
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust log message
parent
59553cc6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
DefaultConfig.java
...a/com/ctrip/framework/apollo/internals/DefaultConfig.java
+1
-1
SimpleConfig.java
...va/com/ctrip/framework/apollo/internals/SimpleConfig.java
+1
-1
No files found.
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/DefaultConfig.java
View file @
23125558
...
...
@@ -86,7 +86,7 @@ public class DefaultConfig extends AbstractConfig implements RepositoryChangeLis
}
if
(
value
==
null
&&
m_configProperties
.
get
()
==
null
)
{
logger
.
error
(
"Config initialization failed
, always return default value!"
);
logger
.
warn
(
"Could not load config from Apollo
, always return default value!"
);
}
return
value
==
null
?
defaultValue
:
value
;
...
...
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/SimpleConfig.java
View file @
23125558
...
...
@@ -55,7 +55,7 @@ public class SimpleConfig extends AbstractConfig implements RepositoryChangeList
@Override
public
String
getProperty
(
String
key
,
String
defaultValue
)
{
if
(
m_configProperties
==
null
)
{
logger
.
error
(
"Config initialization failed
, always return default value!"
);
logger
.
warn
(
"Could not load config from Apollo
, always return default value!"
);
return
defaultValue
;
}
return
this
.
m_configProperties
.
getProperty
(
key
,
defaultValue
);
...
...
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