ref: 93c5774dd70b63c8b5e9268778a355c50b590bb6
parent: 77d2fe78661d965cf4e0ebe38a94ce6ba93db647
author: Bjørn Erik Pedersen <[email protected]>
date: Fri May 19 17:13:55 EDT 2017
tpl/collections: Make IsSet WARNING less chatty Updates #3092
--- a/tpl/collections/collections.go
+++ b/tpl/collections/collections.go
@@ -25,6 +25,7 @@
"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 @@
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