diff --git a/caddyconfig/httpcaddyfile/httptype.go b/caddyconfig/httpcaddyfile/httptype.go index 2db3e7ca..2b2855dd 100644 --- a/caddyconfig/httpcaddyfile/httptype.go +++ b/caddyconfig/httpcaddyfile/httptype.go @@ -203,7 +203,7 @@ func (st ServerType) Setup(originalServerBlocks []caddyfile.ServerBlock, if clVals, ok := sblock.pile["tls.certificate_loader"]; ok { for _, clVal := range clVals { loader := clVal.Value.(caddytls.CertificateLoader) - loaderName := caddy.GetModuleID(loader) + loaderName := caddy.GetModuleName(loader) tlsApp.CertificatesRaw[loaderName] = caddyconfig.JSON(loader, &warnings) } } diff --git a/logging.go b/logging.go index 0b7d9e42..a4a1473f 100644 --- a/logging.go +++ b/logging.go @@ -342,6 +342,7 @@ func (cl *CustomLog) provision(ctx Context, logging *Logging) error { if err != nil { return fmt.Errorf("invalid log level: %v", err) } + level = strings.ToLower(level) // set up the log level switch level {