Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
logging: Warn for deprecated single_field encoder
Matthew Holt committed
Aug 17, 2021 at 10:51 UTC
8a974a4f8f1628c0b74c3a19cb8f2d0b48123cca
3 files changed
+5
-4
caddytest/integration/reverseproxy_test.go
+3
-3
@@ -371,7 +371,7 @@ func TestReverseProxyHealthCheck(t *testing.T) {
371
reverse_proxy {
372
to localhost:2020
373
374
- health_path /health
374
+ health_uri /health
375
health_port 2021
376
health_interval 2s
377
health_timeout 5s
@@ -426,7 +426,7 @@ func TestReverseProxyHealthCheckUnixSocket(t *testing.T) {
426
reverse_proxy {
427
to unix/%s
428
429
- health_path /health
429
+ health_uri /health
430
health_port 2021
431
health_interval 2s
432
health_timeout 5s
@@ -481,7 +481,7 @@ func TestReverseProxyHealthCheckUnixSocketWithoutPort(t *testing.T) {
481
reverse_proxy {
482
to unix/%s
483
484
- health_path /health
484
+ health_uri /health
485
health_interval 2s
486
health_timeout 5s
487
}
modules/caddyhttp/reverseproxy/caddyfile.go
+1
-1
@@ -61,7 +61,7 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
61
// lb_try_interval <interval>
62
//
63
// # active health checking
64
-// health_path <path>
64
+// health_uri <uri>
65
// health_port <port>
66
// health_interval <interval>
67
// health_timeout <duration>
modules/logging/encoders.go
+1
@@ -135,6 +135,7 @@ func (SingleFieldEncoder) CaddyModule() caddy.ModuleInfo {
135
136
// Provision sets up the encoder.
137
func (se *SingleFieldEncoder) Provision(ctx caddy.Context) error {
138
+ caddy.Log().Named("caddy.logging.encoders.single_field").Warn("the 'single_field' encoder is deprecated and will be removed soon!")
139
if se.FallbackRaw != nil {
140
val, err := ctx.LoadModule(se, "FallbackRaw")
141
if err != nil {