From c87028105e314b310dd98d95ecd54d10495de60e Mon Sep 17 00:00:00 2001 From: CMGS Date: Fri, 13 Sep 2019 15:59:27 +0800 Subject: [PATCH] string key if unmarshal failed --- store/etcdv3/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/etcdv3/container.go b/store/etcdv3/container.go index 8312e34ab..e35e40d61 100644 --- a/store/etcdv3/container.go +++ b/store/etcdv3/container.go @@ -212,7 +212,7 @@ func (m *Mercury) doGetContainers(ctx context.Context, keys []string) (container for _, kv := range kvs { container := &types.Container{} if err = json.Unmarshal(kv.Value, container); err != nil { - log.Errorf("[doGetContainers] failed to unmarshal %v, err: %v", kv.Key, err) + log.Errorf("[doGetContainers] failed to unmarshal %v, err: %v", string(kv.Key), err) return } containers = append(containers, container)