From c8aba9b484f71c6b95ae6576c3e04b3d7a68e78f Mon Sep 17 00:00:00 2001 From: Cezar Sa Espinola Date: Fri, 1 Jul 2016 10:59:32 -0300 Subject: [PATCH] registry: avoid formatting errors with %#v Signed-off-by: Cezar Sa Espinola --- docs/handlers/blobupload.go | 2 +- docs/storage/blobstore.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/handlers/blobupload.go b/docs/handlers/blobupload.go index e4133ce8..3afb4739 100644 --- a/docs/handlers/blobupload.go +++ b/docs/handlers/blobupload.go @@ -246,7 +246,7 @@ func (buh *blobUploadHandler) PutBlobUploadComplete(w http.ResponseWriter, r *ht case distribution.ErrBlobInvalidLength, distribution.ErrBlobDigestUnsupported: buh.Errors = append(buh.Errors, v2.ErrorCodeBlobUploadInvalid.WithDetail(err)) default: - ctxu.GetLogger(buh).Errorf("unknown error completing upload: %#v", err) + ctxu.GetLogger(buh).Errorf("unknown error completing upload: %v", err) buh.Errors = append(buh.Errors, errcode.ErrorCodeUnknown.WithDetail(err)) } diff --git a/docs/storage/blobstore.go b/docs/storage/blobstore.go index 84f6660f..4274cc9e 100644 --- a/docs/storage/blobstore.go +++ b/docs/storage/blobstore.go @@ -64,7 +64,7 @@ func (bs *blobStore) Put(ctx context.Context, mediaType string, p []byte) (distr // content already present return desc, nil } else if err != distribution.ErrBlobUnknown { - context.GetLogger(ctx).Errorf("blobStore: error stating content (%v): %#v", dgst, err) + context.GetLogger(ctx).Errorf("blobStore: error stating content (%v): %v", dgst, err) // real error, return it return distribution.Descriptor{}, err }