Skip to content

Commit

Permalink
Merge pull request #24 from ipfs/fix/warnOveride
Browse files Browse the repository at this point in the history
warn when loggable key is overridden fixes #23
  • Loading branch information
Stebalien authored Mar 27, 2018
2 parents 59b4549 + 9fce1eb commit 4b54e7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ func DeepMerge(b, a Metadata) Metadata {
maybe, err := Metadatify(v)
if err != nil {
// if the new value is not meta. just overwrite the dest vaue
if out[k] != nil {
log.Errorf("Over writting key: %s, old: %s, new: %s", k, out[k], v)
}
out[k] = v
continue
}
Expand Down

0 comments on commit 4b54e7d

Please sign in to comment.