mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Allow getJSON errors to be ignored
This change is mostly motivated to get a more stable CI build (we're building the Hugo site there, with Instagram and Twitter shortcodes sometimes failing). Fixes #7866
This commit is contained in:
@@ -24,8 +24,8 @@ import (
|
||||
// New returns a new instance of the fmt-namespaced template functions.
|
||||
func New(d *deps.Deps) *Namespace {
|
||||
ns := &Namespace{
|
||||
errorLogger: helpers.NewDistinctLogger(d.Log.ERROR),
|
||||
warnLogger: helpers.NewDistinctLogger(d.Log.WARN),
|
||||
errorLogger: helpers.NewDistinctLogger(d.Log.Error()),
|
||||
warnLogger: helpers.NewDistinctLogger(d.Log.Warn()),
|
||||
}
|
||||
|
||||
d.BuildStartListeners.Add(func() {
|
||||
|
Reference in New Issue
Block a user