diff --git a/job/replication/delete.go b/job/replication/delete.go index 8bf7813f8..1bec6378f 100644 --- a/job/replication/delete.go +++ b/job/replication/delete.go @@ -62,8 +62,8 @@ func NewDeleter(repository string, tags []string, dstURL, dstUsr, dstPwd string, dstClient: dstClient, logger: logger, } - deleter.logger.Infof("initialization completed: repository: %s, tags: %v, destination URL: %s, destination user: %s", - deleter.repository, deleter.tags, deleter.dstURL, deleter.dstUsr) + deleter.logger.Infof("initialization completed: repository: %s, tags: %v, destination URL: %s, insecure: %v, destination user: %s", + deleter.repository, deleter.tags, deleter.dstURL, deleter.insecure, deleter.dstUsr) return deleter, nil } diff --git a/job/replication/transfer.go b/job/replication/transfer.go index 30bbf88ae..dd2fba546 100644 --- a/job/replication/transfer.go +++ b/job/replication/transfer.go @@ -80,8 +80,8 @@ type BaseHandler struct { func InitBaseHandler(repository, srcURL, srcSecret, dstURL, dstUsr, dstPwd string, insecure bool, tags []string, logger *log.Logger) (*BaseHandler, error) { - logger.Infof("initializing: repository: %s, tags: %v, source URL: %s, destination URL: %s, destination user: %s", - repository, tags, srcURL, dstURL, dstUsr) + logger.Infof("initializing: repository: %s, tags: %v, source URL: %s, destination URL: %s, insecure: %v, destination user: %s", + repository, tags, srcURL, dstURL, insecure, dstUsr) base := &BaseHandler{ repository: repository, @@ -90,6 +90,7 @@ func InitBaseHandler(repository, srcURL, srcSecret, dstURL: dstURL, dstUsr: dstUsr, dstPwd: dstPwd, + insecure: insecure, blobsExistence: make(map[string]bool, 10), logger: logger, } @@ -102,6 +103,7 @@ func InitBaseHandler(repository, srcURL, srcSecret, srcClient, err := newRepositoryClient(base.srcURL, base.insecure, srcCred, base.repository, "repository", base.repository, "pull", "push", "*") if err != nil { + base.logger.Errorf("an error occurred while creating source repository client: %v", err) return nil, err } base.srcClient = srcClient @@ -110,6 +112,7 @@ func InitBaseHandler(repository, srcURL, srcSecret, dstClient, err := newRepositoryClient(base.dstURL, base.insecure, dstCred, base.repository, "repository", base.repository, "pull", "push", "*") if err != nil { + base.logger.Errorf("an error occurred while creating destination repository client: %v", err) return nil, err } base.dstClient = dstClient @@ -117,13 +120,14 @@ func InitBaseHandler(repository, srcURL, srcSecret, if len(base.tags) == 0 { tags, err := base.srcClient.ListTag() if err != nil { + base.logger.Errorf("an error occurred while listing tags for source repository: %v", err) return nil, err } base.tags = tags } - base.logger.Infof("initialization completed: project: %s, repository: %s, tags: %v, source URL: %s, destination URL: %s, destination user: %s", - base.project, base.repository, base.tags, base.srcURL, base.dstURL, base.dstUsr) + base.logger.Infof("initialization completed: project: %s, repository: %s, tags: %v, source URL: %s, destination URL: %s, insecure: %v, destination user: %s", + base.project, base.repository, base.tags, base.srcURL, base.dstURL, base.insecure, base.dstUsr) return base, nil } diff --git a/static/resources/js/components/replication/create-policy.directive.html b/static/resources/js/components/replication/create-policy.directive.html index 75fd8f35d..e08982861 100644 --- a/static/resources/js/components/replication/create-policy.directive.html +++ b/static/resources/js/components/replication/create-policy.directive.html @@ -59,19 +59,13 @@