Skip to content

Commit

Permalink
warn when loggable key is overridden fixes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
frrist committed Mar 27, 2018
1 parent 59b4549 commit 9fce1eb
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 9fce1eb

Please sign in to comment.