diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-11-01 15:15:34 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-11-01 16:40:26 +0100 |
commit | 80f793c38d250ca87b6083eb48d7420baaffd02c (patch) | |
tree | 445a4a5c681cdb6098886ccf71f643c292414760 /hugolib | |
parent | a9079d7a6305da15d22ce922da36ec12561a71dc (diff) |
Avoid double printing INFO deprecation messages
Fixes #11645
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/integrationtest_builder.go | 8 | ||||
-rw-r--r-- | hugolib/site_new.go | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/hugolib/integrationtest_builder.go b/hugolib/integrationtest_builder.go index 54085070c..14509657a 100644 --- a/hugolib/integrationtest_builder.go +++ b/hugolib/integrationtest_builder.go @@ -394,10 +394,10 @@ func (s *IntegrationTestBuilder) initBuilder() error { logger := loggers.New( loggers.Options{ - Stdout: w, - Stderr: w, - Level: s.Cfg.LogLevel, - Distinct: true, + Stdout: w, + Stderr: w, + Level: s.Cfg.LogLevel, + DistinctLevel: logg.LevelWarn, }, ) diff --git a/hugolib/site_new.go b/hugolib/site_new.go index ac59e01c7..da9d19f21 100644 --- a/hugolib/site_new.go +++ b/hugolib/site_new.go @@ -117,7 +117,7 @@ func NewHugoSites(cfg deps.DepsCfg) (*HugoSites, error) { logOpts := loggers.Options{ Level: cfg.LogLevel, - Distinct: true, // This will drop duplicate log warning and errors. + DistinctLevel: logg.LevelWarn, // This will drop duplicate log warning and errors. HandlerPost: logHookLast, Stdout: cfg.LogOut, Stderr: cfg.LogOut, |