From a6a834b5fedcee470fdc44ae2c7407747341a529 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 3 Feb 2021 15:10:16 -0500 Subject: [PATCH] logpolicy: shorten envvar name Signed-off-by: Christine Dodrill --- logpolicy/logpolicy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logpolicy/logpolicy.go b/logpolicy/logpolicy.go index 4103b43c1..4f6ab774c 100644 --- a/logpolicy/logpolicy.go +++ b/logpolicy/logpolicy.go @@ -388,7 +388,7 @@ func New(collection string) *Policy { HTTPC: &http.Client{Transport: newLogtailTransport(logtail.DefaultHost)}, } - if val, ok := os.LookupEnv("TAILSCALE_LOG_TARGET_DO_NOT_SET_UNLESS_TOLD_TO"); ok { + if val, ok := os.LookupEnv("TAILSCALE_LOG_TARGET"); ok { log.Println("You have enabled a non-default log target. Doing without being told to by Tailscale staff or your network administrator will make getting support difficult.") c.BaseURL = val u, _ := url.Parse(val)