Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-10-21 12:17:48 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-10-22 10:09:29 +0300
commitfdfa4a5fe62232f65f1dd8d6fe0c500374228788 (patch)
treeb804e91506a7f3c58690c6fd774b28f95184d5dc /hugofs/walk.go
parent8cbe2bbfad6aa4de267921e24e166d4addf47040 (diff)
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
Diffstat (limited to 'hugofs/walk.go')
-rw-r--r--hugofs/walk.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/hugofs/walk.go b/hugofs/walk.go
index da6983f11..91dd386e2 100644
--- a/hugofs/walk.go
+++ b/hugofs/walk.go
@@ -37,7 +37,7 @@ type Walkway struct {
root string
basePath string
- logger *loggers.Logger
+ logger loggers.Logger
// May be pre-set
fi FileMetaInfo
@@ -59,7 +59,7 @@ type WalkwayConfig struct {
Root string
BasePath string
- Logger *loggers.Logger
+ Logger loggers.Logger
// One or both of these may be pre-set.
Info FileMetaInfo
@@ -158,15 +158,15 @@ func (w *Walkway) checkErr(filename string, err error) bool {
// The file may be removed in process.
// This may be a ERROR situation, but it is not possible
// to determine as a general case.
- w.logger.WARN.Printf("File %q not found, skipping.", filename)
+ w.logger.Warnf("File %q not found, skipping.", filename)
return true
}
return false
}
-func logUnsupportedSymlink(filename string, logger *loggers.Logger) {
- logger.WARN.Printf("Unsupported symlink found in %q, skipping.", filename)
+func logUnsupportedSymlink(filename string, logger loggers.Logger) {
+ logger.Warnf("Unsupported symlink found in %q, skipping.", filename)
}
// walk recursively descends path, calling walkFn.