Commit e636c8ea by Jason Song

misc change

parent 03a5783a
## I. Prerequisite ## I. Prerequisite
### I.I Mandatory Setup ### I.I Requirements
* Java: 1.7+
### I.II Mandatory Setup
Apollo client requires `AppId` and `Environment` information available to function properly, so please read the following and configure them properly: Apollo client requires `AppId` and `Environment` information available to function properly, so please read the following and configure them properly:
#### 1. AppId #### 1. AppId
...@@ -45,7 +49,7 @@ Currently, `env` allows the following values (case-insensitive): ...@@ -45,7 +49,7 @@ Currently, `env` allows the following values (case-insensitive):
* UAT * UAT
* PRO * PRO
### I.II Optional Setup ### I.III Optional Setup
#### Cluster #### Cluster
......
...@@ -14,7 +14,7 @@ public interface ConfigRepository { ...@@ -14,7 +14,7 @@ public interface ConfigRepository {
/** /**
* Set the fallback repo for this repository. * Set the fallback repo for this repository.
* @param upstreamConfigRepository the fallback repo * @param upstreamConfigRepository the upstream repo
*/ */
public void setUpstreamRepository(ConfigRepository upstreamConfigRepository); public void setUpstreamRepository(ConfigRepository upstreamConfigRepository);
......
...@@ -227,12 +227,12 @@ public class LocalFileConfigRepository extends AbstractConfigRepository ...@@ -227,12 +227,12 @@ public class LocalFileConfigRepository extends AbstractConfigRepository
} catch (IOException ex) { } catch (IOException ex) {
ApolloConfigException exception = ApolloConfigException exception =
new ApolloConfigException( new ApolloConfigException(
String.format("Create local config directory %s failed", baseDir), ex); String.format("Create local config directory %s failed", baseDir.getAbsolutePath()), ex);
Cat.logError(exception); Cat.logError(exception);
transaction.setStatus(exception); transaction.setStatus(exception);
logger.warn( logger.warn(
"Unable to create local config cache directory {}, reason: {}. Will not able to cache config file.", "Unable to create local config cache directory {}, reason: {}. Will not able to cache config file.",
baseDir, ExceptionUtil.getDetailMessage(ex)); baseDir.getAbsolutePath(), ExceptionUtil.getDetailMessage(ex));
} finally { } finally {
transaction.complete(); transaction.complete();
} }
......
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