diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-19 21:13:55 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-19 21:14:37 +0300 |
commit | 93c5774dd70b63c8b5e9268778a355c50b590bb6 (patch) | |
tree | 13115ebcdc8b0297d0734f996f18b4d8843d6b6f /tpl/collections | |
parent | 77d2fe78661d965cf4e0ebe38a94ce6ba93db647 (diff) |
tpl/collections: Make IsSet WARNING less chatty
Updates #3092
Diffstat (limited to 'tpl/collections')
-rw-r--r-- | tpl/collections/collections.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tpl/collections/collections.go b/tpl/collections/collections.go index 61459ee6b..a6331edfe 100644 --- a/tpl/collections/collections.go +++ b/tpl/collections/collections.go @@ -25,6 +25,7 @@ import ( "github.com/spf13/cast" "github.com/spf13/hugo/deps" + "github.com/spf13/hugo/helpers" ) // New returns a new instance of the collections-namespaced template functions. @@ -371,7 +372,7 @@ func (ns *Namespace) IsSet(a interface{}, key interface{}) (bool, error) { return av.MapIndex(kv).IsValid(), nil } default: - ns.deps.Log.FEEDBACK.Printf("WARNING: calling IsSet with unsupported type %q (%T) will always return false.\n", av.Kind(), a) + helpers.DistinctFeedbackLog.Printf("WARNING: calling IsSet with unsupported type %q (%T) will always return false.\n", av.Kind(), a) } return false, nil |