diff --git a/pkg/compute/models/cloudsync.go b/pkg/compute/models/cloudsync.go index e1b1098c77..71b39f4827 100644 --- a/pkg/compute/models/cloudsync.go +++ b/pkg/compute/models/cloudsync.go @@ -577,6 +577,7 @@ func syncZoneStorages(ctx context.Context, userCred mcclient.TokenCredential, sy } func syncStorageCaches(ctx context.Context, userCred mcclient.TokenCredential, provider *SCloudprovider, localStorage *SStorage, remoteStorage cloudprovider.ICloudStorage) (cachePair sStoragecacheSyncPair) { + log.Debugf("syncStorageCaches for storage %s", localStorage.GetId()) remoteCache := remoteStorage.GetIStoragecache() if remoteCache == nil { log.Errorf("remote storageCache is nil") @@ -1343,7 +1344,7 @@ func syncOnPremiseCloudProviderInfo( result := storageCachePairs[i].syncCloudImages(ctx, userCred) syncResults.Add(StoragecachedimageManager, result) msg := result.Result() - log.Infof("syncCloudImages result: %s", msg) + log.Infof("syncCloudImages for stroagecache %s result: %s", storageCachePairs[i].local.GetId(), msg) // } } } diff --git a/pkg/multicloud/esxi/storagecache.go b/pkg/multicloud/esxi/storagecache.go index 065aebad2b..c010fe303a 100644 --- a/pkg/multicloud/esxi/storagecache.go +++ b/pkg/multicloud/esxi/storagecache.go @@ -173,8 +173,13 @@ func (self *SDatastoreImageCache) GetIImageInTemplateVMs() ([]cloudprovider.IClo } log.Infof("get templates successfully") + log.Debugf("fake template name: ") for i := range fakeTemplates { - log.Infof("fake template name: %s", fakeTemplates[i].GetName()) + log.Debugf("%s ", fakeTemplates[i].GetName()) + } + log.Debugf("real template name: ") + for i := range realTemplates { + log.Debugf("%s ", realTemplates[i].GetName()) } return ret, nil }