Fix some inaccurate logging message in template sync.

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c13a6914
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c13a6914
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c13a6914

Branch: refs/heads/object_store
Commit: c13a6914294172d18ab383bab74d0b6888ea9240
Parents: ff735b4
Author: Min Chen <[email protected]>
Authored: Mon May 13 11:27:34 2013 -0700
Committer: Min Chen <[email protected]>
Committed: Mon May 13 11:27:34 2013 -0700

----------------------------------------------------------------------
 .../storage/image/TemplateServiceImpl.java         |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c13a6914/engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
----------------------------------------------------------------------
diff --git 
a/engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
 
b/engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
index bf8155b..a34d2ac 100644
--- 
a/engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
+++ 
b/engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
@@ -282,7 +282,7 @@ public class TemplateServiceImpl implements TemplateService 
{
                 TemplateProp tmpltInfo = templateInfos.remove(uniqueName);
                 toBeDownloaded.remove(tmplt);
                 if (tmpltStore != null) {
-                    s_logger.info("Template Sync found " + uniqueName + " 
already in the template host table");
+                    s_logger.info("Template Sync found " + uniqueName + " 
already in the image store");
                     if (tmpltStore.getDownloadState() != Status.DOWNLOADED) {
                         tmpltStore.setErrorString("");
                     }
@@ -335,10 +335,10 @@ public class TemplateServiceImpl implements 
TemplateService {
                 continue;
             }
             if (tmpltStore != null && tmpltStore.getDownloadState() != 
Status.DOWNLOADED) {
-                s_logger.info("Template Sync did not find " + uniqueName + " 
ready on server " + storeId + ", will request download to start/resume 
shortly");
+                s_logger.info("Template Sync did not find " + uniqueName + " 
ready on image store " + storeId + ", will request download to start/resume 
shortly");
 
             } else if (tmpltStore == null) {
-                s_logger.info("Template Sync did not find " + uniqueName + " 
on the server " + storeId + ", will request download shortly");
+                s_logger.info("Template Sync did not find " + uniqueName + " 
on the image store " + storeId + ", will request download shortly");
                 TemplateDataStoreVO templtStore = new 
TemplateDataStoreVO(storeId, tmplt.getId(), new Date(), 0, 
Status.NOT_DOWNLOADED, null, null, null, null, tmplt.getUrl());
                 _vmTemplateStoreDao.persist(templtStore);
                 associateTemplateToZone(tmplt.getId(), zoneId);
@@ -380,7 +380,6 @@ public class TemplateServiceImpl implements TemplateService 
{
                         continue;
                     }
                     s_logger.debug("Template " + tmplt.getName() + " needs to 
be downloaded to " + store.getName());
-                    //TODO: we should pass a callback here
                     TemplateInfo tmpl = 
_templateFactory.getTemplate(tmplt.getId(), DataStoreRole.Image);
                     createTemplateAsync(tmpl, store, null);
                 }

Reply via email to