common/loggers: Fix typo in option name

This commit is contained in:
Oleksandr Redko
2023-08-17 12:16:08 +03:00
committed by Bjørn Erik Pedersen
parent 2e4bf89ec7
commit 65871d5cf4
4 changed files with 20 additions and 20 deletions

View File

@@ -119,13 +119,13 @@ func NewHugoSites(cfg deps.DepsCfg) (*HugoSites, error) {
}
logOpts := loggers.Options{
Level: cfg.LogLevel,
Distinct: true, // This will drop duplicate log warning and errors.
HandlerPost: logHookLast,
Stdout: cfg.LogOut,
Stderr: cfg.LogOut,
StoreErrors: conf.Running(),
SuppresssStatements: conf.IgnoredErrors(),
Level: cfg.LogLevel,
Distinct: true, // This will drop duplicate log warning and errors.
HandlerPost: logHookLast,
Stdout: cfg.LogOut,
Stderr: cfg.LogOut,
StoreErrors: conf.Running(),
SuppressStatements: conf.IgnoredErrors(),
}
logger = loggers.New(logOpts)
}