Browse Source

Make debugs logs suck less.

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
Jessica Frazelle 10 năm trước cách đây
mục cha
commit
c49cd3d2a5
2 tập tin đã thay đổi với 0 bổ sung3 xóa
  1. 0 1
      graph/pull.go
  2. 0 2
      image/image.go

+ 0 - 1
graph/pull.go

@@ -153,7 +153,6 @@ func (s *TagStore) pullRepository(r *registry.Session, out io.Writer, repoInfo *
 	for _, image := range repoData.ImgList {
 	for _, image := range repoData.ImgList {
 		downloadImage := func(img *registry.ImgData) {
 		downloadImage := func(img *registry.ImgData) {
 			if askedTag != "" && img.Tag != askedTag {
 			if askedTag != "" && img.Tag != askedTag {
-				log.Debugf("(%s) does not match %s (id: %s), skipping", img.Tag, askedTag, img.ID)
 				if parallel {
 				if parallel {
 					errors <- nil
 					errors <- nil
 				}
 				}

+ 0 - 2
image/image.go

@@ -9,7 +9,6 @@ import (
 	"strconv"
 	"strconv"
 	"time"
 	"time"
 
 
-	log "github.com/Sirupsen/logrus"
 	"github.com/docker/docker/pkg/archive"
 	"github.com/docker/docker/pkg/archive"
 	"github.com/docker/docker/pkg/tarsum"
 	"github.com/docker/docker/pkg/tarsum"
 	"github.com/docker/docker/runconfig"
 	"github.com/docker/docker/runconfig"
@@ -274,7 +273,6 @@ func (img *Image) CheckDepth() error {
 func NewImgJSON(src []byte) (*Image, error) {
 func NewImgJSON(src []byte) (*Image, error) {
 	ret := &Image{}
 	ret := &Image{}
 
 
-	log.Debugf("Json string: {%s}", src)
 	// FIXME: Is there a cleaner way to "purify" the input json?
 	// FIXME: Is there a cleaner way to "purify" the input json?
 	if err := json.Unmarshal(src, ret); err != nil {
 	if err := json.Unmarshal(src, ret); err != nil {
 		return nil, err
 		return nil, err