chore: add warn logs when using deprecated fields (#6276)

This commit is contained in:
Mohammed Al Sahaf
2024-04-27 22:51:00 +03:00
committed by GitHub
parent 2fc620d38d
commit 87c7127c28
3 changed files with 4 additions and 2 deletions
@@ -1112,6 +1112,7 @@ func (h *HTTPTransport) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
h.TLS.HandshakeTimeout = caddy.Duration(dur)
case "tls_trusted_ca_certs":
caddy.Log().Warn("The 'tls_trusted_ca_certs' field is deprecated. Use the 'tls_trust_pool' field instead.")
args := d.RemainingArgs()
if len(args) == 0 {
return d.ArgErr()