Remove debug info

This commit is contained in:
hmwenchen 2016-04-26 21:00:29 +08:00
parent 53bb0c1e6d
commit b4cc422a97
2 changed files with 0 additions and 23 deletions

View File

@ -24,7 +24,6 @@ import (
"github.com/vmware/harbor/models"
svc_utils "github.com/vmware/harbor/service/utils"
"github.com/vmware/harbor/utils/log"
"github.com/vmware/harbor/utils/registry"
"github.com/astaxie/beego"
)
@ -32,7 +31,6 @@ import (
// NotificationHandler handles request on /service/notifications/, which listens to registry's events.
type NotificationHandler struct {
beego.Controller
registry *registry.Registry
}
const manifestPattern = `^application/vnd.docker.distribution.manifest.v\d\+json`
@ -87,21 +85,3 @@ func (n *NotificationHandler) Post() {
func (n *NotificationHandler) Render() error {
return nil
}
func compStringArray(a, b []string) bool {
if a == nil && b == nil {
return true
}
if a == nil || b == nil {
return false
}
if len(a) != len(b) {
return false
}
for i, v := range a {
if v != b[i] {
return false
}
}
return true
}

View File

@ -25,7 +25,6 @@ import (
"github.com/docker/distribution/manifest"
"github.com/docker/distribution/manifest/schema1"
"github.com/docker/distribution/manifest/schema2"
"github.com/vmware/harbor/utils/log"
"github.com/vmware/harbor/utils/registry/errors"
)
@ -198,8 +197,6 @@ func (r *Registry) PullManifest(name, reference string, version manifest.Version
}
// if the registry does not support schema 2, schema 1 manifest will be returned
log.Debugf("--- Pull request headers: %v ---", req.Header)
log.Debugf("--- Pull request Accept header: %v ---", http.CanonicalHeaderKey("Accept"))
req.Header.Set(http.CanonicalHeaderKey("Accept"), version.MediaType)
resp, err := r.client.Do(req)