Skip to content

Commit

Permalink
string key if unmarshal failed
Browse files Browse the repository at this point in the history
  • Loading branch information
CMGS committed Sep 13, 2019
1 parent 144cda0 commit c870281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/etcdv3/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c870281

Please sign in to comment.