From 9fce1ebc70f4fb0a8e70b84985e80e551a2c181b Mon Sep 17 00:00:00 2001 From: ForrestWeston Date: Mon, 26 Mar 2018 18:38:59 -0700 Subject: [PATCH] warn when loggable key is overridden fixes #23 --- metadata.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metadata.go b/metadata.go index 36782e3f4e15..0e30bf872795 100644 --- a/metadata.go +++ b/metadata.go @@ -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 }