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
path: root/deps
diff options
context:
space:
mode:
Diffstat (limited to 'deps')
-rw-r--r--deps/deps.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/deps/deps.go b/deps/deps.go
index 2b66a153f..1e2686421 100644
--- a/deps/deps.go
+++ b/deps/deps.go
@@ -16,7 +16,6 @@ import (
"github.com/gohugoio/hugo/resource"
"github.com/gohugoio/hugo/source"
"github.com/gohugoio/hugo/tpl"
- jww "github.com/spf13/jwalterweatherman"
)
// Deps holds dependencies used by many.
@@ -25,7 +24,7 @@ import (
type Deps struct {
// The logger to use.
- Log *jww.Notepad `json:"-"`
+ Log *loggers.Logger `json:"-"`
// Used to log errors that may repeat itself many times.
DistinctErrorLog *helpers.DistinctLogger
@@ -122,10 +121,6 @@ func (d *Deps) LoadResources() error {
return err
}
- if th, ok := d.Tmpl.(tpl.TemplateHandler); ok {
- th.PrintErrors()
- }
-
return nil
}
@@ -256,7 +251,7 @@ func (d Deps) ForLanguage(cfg DepsCfg) (*Deps, error) {
type DepsCfg struct {
// The Logger to use.
- Logger *jww.Notepad
+ Logger *loggers.Logger
// The file systems to use
Fs *hugofs.Fs