aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-10-31 09:25:28 +0100
committerBjørn Erik Pedersen <[email protected]>2023-10-31 10:42:23 +0100
commitab21433689093a87db68666845d736ad492a056f (patch)
tree70828119c97f18143b41aa8bc904a2d889bf16c6 /config
parent23fcfb7f741a417f53a8ef4997bb68e64631df01 (diff)
downloadhugo-ab21433689093a87db68666845d736ad492a056f.tar.gz
hugo-ab21433689093a87db68666845d736ad492a056f.zip
Fix deprecation printing on info level
Fixes #11638
Diffstat (limited to 'config')
-rw-r--r--config/allconfig/load.go5
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) {