feat: Log new certificates using info

This commit is contained in:
PapaTutuWawa 2024-01-01 01:21:24 +01:00
parent fc96bd8a5d
commit 1ad9ef6d93

View File

@ -265,7 +265,7 @@ func makeTlsConfig(pagesDomain, path string, acmeClient *lego.Client) *tls.Confi
defer unlockDomain(domain)
// Request new certificate
log.Debugf("Obtaining new certificate for %s...", domain)
log.Infof("Obtaining new certificate for %s...", domain)
err := ObtainNewCertificate(
[]string{domain},
path,
@ -284,7 +284,6 @@ func makeTlsConfig(pagesDomain, path string, acmeClient *lego.Client) *tls.Confi
return cert.TlsCertificate, nil
}
log.Debugf("TLS ServerName: %s", info.ServerName)
return Certificates.FallbackCertificate.TlsCertificate, nil
},
NextProtos: []string{