You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dm...@apache.org on 2015/05/06 14:59:15 UTC
ambari git commit: AMBARI-10956. "Loading latest" log entry should
include info about stack and version (dlysnichenko)
Repository: ambari
Updated Branches:
refs/heads/trunk dff2e0e02 -> 1cde5c70a
AMBARI-10956. "Loading latest" log entry should include info about stack and version (dlysnichenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1cde5c70
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1cde5c70
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1cde5c70
Branch: refs/heads/trunk
Commit: 1cde5c70a7a101298836955dae85720efafe420e
Parents: dff2e0e
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Wed May 6 15:58:37 2015 +0300
Committer: Lisnichenko Dmitro <dl...@hortonworks.com>
Committed: Wed May 6 15:58:37 2015 +0300
----------------------------------------------------------------------
.../ambari/server/state/stack/LatestRepoCallable.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/1cde5c70/ambari-server/src/main/java/org/apache/ambari/server/state/stack/LatestRepoCallable.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/state/stack/LatestRepoCallable.java b/ambari-server/src/main/java/org/apache/ambari/server/state/stack/LatestRepoCallable.java
index f4578a6..cd7d229 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/state/stack/LatestRepoCallable.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/state/stack/LatestRepoCallable.java
@@ -71,7 +71,8 @@ public class LatestRepoCallable implements Callable<Void> {
LOOKUP_CONNECTION_TIMEOUT, LOOKUP_READ_TIMEOUT,
null, null, null);
- LOG.info("Loading latest URL info from " + sourceUri);
+ LOG.info("Loading latest URL info for stack " + stack.getName() + "-" +
+ stack.getVersion() + " from " + sourceUri);
latestUrlMap = gson.fromJson(new InputStreamReader(
streamProvider.readFrom(sourceUri)), type);
} else {
@@ -83,12 +84,14 @@ public class LatestRepoCallable implements Callable<Void> {
}
if (jsonFile.exists()) {
- LOG.info("Loading latest URL info from " + jsonFile);
+ LOG.info("Loading latest URL info for stack " + stack.getName() + "-" +
+ stack.getVersion() + " from " + jsonFile);
latestUrlMap = gson.fromJson(new FileReader(jsonFile), type);
}
}
} catch (Exception e) {
- LOG.error("Could not load the URI " + sourceUri + " (" + e.getMessage() + ")");
+ LOG.error("Could not load the URI for stack " + stack.getName() + "-" +
+ stack.getVersion() + " from " + sourceUri + " (" + e.getMessage() + ")");
throw e;
}