From e015cbadd6b93e12b58f84b6f1c3640995bce034 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 --- registry/handlers/blobupload.go | 2 +- registry/storage/blobstore.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/handlers/blobupload.go b/registry/handlers/blobupload.go index e4133ce87..3afb47398 100644 --- a/registry/handlers/blobupload.go +++ b/registry/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/registry/storage/blobstore.go b/registry/storage/blobstore.go index 84f6660f3..4274cc9e8 100644 --- a/registry/storage/blobstore.go +++ b/registry/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 }