diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-10-31 09:25:28 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-10-31 10:42:23 +0100 |
commit | ab21433689093a87db68666845d736ad492a056f (patch) | |
tree | 70828119c97f18143b41aa8bc904a2d889bf16c6 /config | |
parent | 23fcfb7f741a417f53a8ef4997bb68e64631df01 (diff) | |
download | hugo-ab21433689093a87db68666845d736ad492a056f.tar.gz hugo-ab21433689093a87db68666845d736ad492a056f.zip |
Fix deprecation printing on info level
Fixes #11638
Diffstat (limited to 'config')
-rw-r--r-- | config/allconfig/load.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/config/allconfig/load.go b/config/allconfig/load.go index 3af6147da..e7dae1806 100644 --- a/config/allconfig/load.go +++ b/config/allconfig/load.go @@ -93,10 +93,10 @@ func LoadConfig(d ConfigSourceDescriptor) (*Configs, error) { // This is unfortunate, but these are global settings. tpl.SetSecurityAllowActionJSTmpl(configs.Base.Security.GoTemplates.AllowActionJSTmpl) - loggers.InitGlobalLogger(configs.Base.PanicOnWarning) - return configs, nil + loggers.InitGlobalLogger(d.Logger.Level(), configs.Base.PanicOnWarning) + return configs, nil } // ConfigSourceDescriptor describes where to find the config (e.g. config.toml etc.). @@ -330,7 +330,6 @@ func (l *configLoader) envStringToVal(k, v string) any { default: return v } - } func (l *configLoader) loadConfigMain(d ConfigSourceDescriptor) (config.LoadConfigResult, modules.ModulesConfig, error) { |